@anisrh/device-fingerprint
v1.0.1
Published
Get device MAC address for developer authentication
Maintainers
Readme
Device Fingerprint
Get your device MAC address for developer authentication.
Installation
npm installUsage
CLI (Command Line)
Run the tool to get your MAC address:
node cli.jsOr if installed globally:
device-fingerprintTo see all MAC addresses:
node cli.js --allProgrammatic Usage
const { getMacAddress, getAllMacAddresses } = require('device-fingerprint');
// Get primary MAC address
const macAddress = getMacAddress();
console.log(macAddress); // e.g., "AA:BB:CC:DD:EE:FF"
// Get all MAC addresses
const allMacs = getAllMacAddresses();
console.log(allMacs);
// [
// { interface: 'eth0', mac: 'AA:BB:CC:DD:EE:FF' },
// { interface: 'wlan0', mac: '11:22:33:44:55:66' }
// ]For New Developers
- Run
node cli.jsin this directory - Copy the MAC address shown
- Send it to your team lead for registration
Platform Support
- Windows
- macOS
- Linux
