JSPM

getmac

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 66930
  • Score
    100M100P100Q153244F

Get the mac address of the current machine you are on

Package Exports

  • getmac

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (getmac) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

getmac for node.js

Build Status NPM version Flattr this project

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