8000 GitHub - erwinkendo/getmac at v1.0.3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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