getmac

Get the mac address of the current machine you are on

npm install getmac
163 downloads in the last day
1 250 downloads in the last week
6 310 downloads in the last month

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

Node, Browserify

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

Ender

  • 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)

npm loves you