hosts-path Get the path to the hosts file Install $ npm install --save hosts-path Usage var hostsPath = require('hosts-path'); hostsPath(); //=> '/etc/hosts' License MIT © Kevin Martensson