10000 GitHub - erwinkendo/getmac: Get the mac address of the current machine you are on via Node.js
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from bevry/getmac

Get the mac address of the current machine you are on via Node.js

License

Notifications You must be signed in to change notification settings

erwinkendo/getmac

 
 

Repository files navigation

getmac

Build Status NPM version Gittip donate button Flattr donate button PayPayl donate button

Get the mac address of the current machine you are on

Install

  • Use: require('getmac')
  • Install: npm install --save getmac
  • Use: require('getmac')
  • Install: ender add getmac

Usage

CLI

  1. Install Globally: install -g getmac
  2. Run with: getmac-node

API

// 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

Discover the change history by heading on over to the History.md file.

Contribute

Discover how you can contribute by heading on over to the Contributing.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Gittip donate button Flattr donate button PayPayl donate button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Licensed under the incredibly permissive MIT license

Copyright © 2013+ Bevry Pty Ltd us@bevry.me (http://bevry.me)

About

Get the mac address of the current machine you are on via Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0