UNPKG

getmac

Version:

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

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