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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    29
    • latest

Version History

Package Sidebar

Install

npm i hosts-lookup

Weekly Downloads

29

Version

1.2.0

License

MIT

Last publish

Collaborators

  • hemanth