# getmac
**Repository Path**: mirrors_alsotang/getmac
## Basic Information
- **Project Name**: getmac
- **Description**: Get the mac address of the current machine you are on via Node.js
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-11-23
- **Last Updated**: 2026-07-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# getmac
[](http://travis-ci.org/bevry/getmac "Check this project's build status on TravisCI")
[](https://npmjs.org/package/getmac "View this project on NPM")
[](https://npmjs.org/package/getmac "View this project on NPM")
[](https://david-dm.org/bevry/getmac)
[](https://david-dm.org/bevry/getmac#info=devDependencies)
[](https://www.gratipay.com/bevry/ "Donate weekly to this project using Gratipay")
[](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr")
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal")
[](https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a "Donate once-off to this project using BitCoin")
[](http://amzn.com/w/2F8TXKSNAFG4V "Buy an item on our wishlist for us")
Get the mac address of the current machine you are on
## Install
### [NPM](http://npmjs.org/)
- Use: `require('getmac')`
- Install: `npm install --save getmac`
## Usage
### CLI
1. Install Globally: `install -g getmac`
2. Run with: `getmac-node`
### API
``` javascript
// 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.](https://github.com/bevry/getmac/blob/master/HISTORY.md#files)
## Contribute
[Discover how you can contribute by heading on over to the `CONTRIBUTING.md` file.](https://github.com/bevry/getmac/blob/master/CONTRIBUTING.md#files)
## Backers
### Maintainers
These amazing people are maintaining this project:
- Benjamin Lupton (https://github.com/balupton)
### Sponsors
No sponsors yet! Will you be the first?
[](https://www.gratipay.com/bevry/ "Donate weekly to this project using Gratipay")
[](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr")
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal")
[](https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a "Donate once-off to this project using BitCoin")
[](http://amzn.com/w/2F8TXKSNAFG4V "Buy an item on our wishlist for us")
### Contributors
These amazing people have contributed code to this project:
- [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/getmac/commits?author=balupton)
[Become a contributor!](https://github.com/bevry/getmac/blob/master/CONTRIBUTING.md#files)
## License
Unless stated otherwise all works are:
- Copyright © 2013+ Bevry Pty Ltd (http://bevry.me)
and licensed under:
- The incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://opensource.org/licenses/mit-license.php)