UNPKG

getmac

Version:

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

10 lines (9 loc) 192 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 }