You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jack Lukic aa2633de07 missing files 12 years ago
..
bin Fixes issue with accidental submodule 12 years ago
out/lib Fixes issue with accidental submodule 12 years ago
.npmignore Fixes issue with accidental submodule 12 years ago
LICENSE.md Fixes issue with accidental submodule 12 years ago
README.md Fixes issue with accidental submodule 12 years ago
package.json Fixes issue with accidental submodule 12 years ago

README.md

getmac for node.js

Get the mac address of the current machine you are on.

Install

  1. Install Node.js
  2. Install it locally via: npm install getmac
  3. Try it globally with: npm install -g getmac and getmac-node

Usage

// Fetch the computer's mac address
require('getmac').getMac(function(err,macAddress){
	if (err)  throw err;
	console.log(macAddress);	
});

// Validate that an address is a mac address
if ( require('getmac').isMac("e4:ce:8f:5b:a7:fc") ) {
	console.log('valid mac');
}
else {
	console.log('invalid mac');
}

History

You can discover the history inside the History.md file

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd us@bevry.me