hosts-editor
const editHosts = require('hosts-editor');
// Returns a promise
editHosts('foobar', [
{ 'host': 'foobar123.site', 'ip': '192.168.5.255' }
]);
const editHosts = require('hosts-editor');
// Returns a promise
editHosts('foobar', [
{ 'host': 'foobar123.site', 'ip': '192.168.5.255' }
]);
npm i hosts-editor
2
1.1.0
ISC
3.95 kB
5