hosts-lookup

1.2.0 • Public • Published

hosts-lookup Build Status

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

/hosts-lookup/

    Package Sidebar

    Install

    npm i hosts-lookup

    Weekly Downloads

    29

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • hemanth