Get local IP address and MAC address
npm install node-getmacip
npm install node-getmacip
`
导入
`
const {getMac, getIp} = require('node-getmacip')
`
获取 mac
`
let mac = getMac()
console.log(mac)
`
获取 ip
`
let ip = getIp()
console.log(ip)
``