UNPKG

getmac

Version:

Get the MAC address of the current machine you are on.

11 lines (10 loc) 206 B
#!/usr/bin/env node import getMAC from './'; import { networkInterfaces } from 'os'; try { console.log(getMAC(process.argv[2])); } catch (err) { console.error(networkInterfaces()); throw err; }