`etc/hosts` as an array of objects.
npm install get-hosts> etc/hosts as an array of objects.
```
$ npm install --save get-hosts
`js
var getHosts = require('get-hosts');
getHosts(); // sync
getHosts(function(err,hosts){
if(!err) console.log(hosts);
});
/*[ { 'local.dev': '127.0.0.1' },
{ localhost: '127.0.0.1' },
{ broadcasthost: '255.255.255.255' },
{ 'localhost~ ': '::1' } ]*/
``
- get-hosts-cli - CLI for this module
MIT © Hemanth.HM