Managing network interfaces from node.js -
i developing node.js/express server application on debian platform. need allow users view and, importantly, change basic network settings: static/ip vs. auto/dhcp. suppose use (and write supporting code for):
cp.exec('ifconfig', function (err, ifconfigout, stderr)
but wondering best practices doing , if there recommended npm module (didn't seem find active ones)?
short answer, given lack of responses , googling: there appears no 'de facto' node module provides necessary services managing network interfaces. did find 2 had promise incomplete: https://github.com/fgribreau/network-config , https://www.npmjs.com/package/ife.
edit: of course can use https://nodejs.org/api/os.html#os_os_networkinterfaces view existing interfaces, if want change anything, core node not appear have functionality.
Comments
Post a Comment