我正在 Debian 平台上开发 node.js/express 服务器应用程序。我需要允许用户查看并更改基本网络设置:静态/IP 与自动/DHCP。我想我可以使用(并为其编写支持代码):
cp.exec('ifconfig', function (err, ifConfigOut, stderr)
但我想知道这样做的最佳实践是什么,是否有推荐的 npm 模块(似乎没有找到任何活动的模块)?
node.js network-interface
network-interface ×1
node.js ×1