I am developing a node.js/express server application on Debian platform. I need to allow users to view and, importantly, change basic network settings: static/IP vs. auto/DHCP. I suppose I could use (and write the supporting code for):
cp.exec('ifconfig', function (err, ifConfigOut, stderr)
But I was wondering what the best practices are for doing this and if there was a recommended npm module (didn't seem to find any active ones)?