如何使用nodejs在Windows上运行的网络接口的MAC地址?
?ipconfig/all and and getmac无法获得确切的结果。:(
您可以使用NPM中的网络软件包。
安装:
npm install network
使用:
const network = require('network');
network.get_active_interface(function(err, obj) {
console.log(obj.mac_address);
})