hosts-lookup
v1.2.0
Published
Lookup your `/etc/hosts`
Downloads
103
Readme
hosts-lookup
Lookup your
/etc/hosts
Install
$ npm install --save hosts-lookup
Usage
var hostsLookup = require('hosts-lookup');
hostsLookup('crazy-cat')
.then(console.log) // => ip is value from `hosts` if found.
.catch(console.error)
P.S: This module was created as a result of this issue.
License
MIT © Hemanth.HM