Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IbpTeam/node-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 [email protected] (http://bevry.me)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published