is-localhost

0.0.2 • Public • Published

is-localhost

Determine if a host is a localhost

install

$ npm install is-localhost

usage

var isLocal = require('is-localhost')
 
isLocal('127.0.0.1'); // true
isLocal('12.34.56.78'); // false
isLocal('::1'); // true

license

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i is-localhost

      Weekly Downloads

      85

      Version

      0.0.2

      License

      MIT

      Last publish

      Collaborators

      • werle