1.0.3 • Published 8 years ago

is-this-local v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

is-this-local

Build Status NPM version

Predicate for whether the current document location is localhost

Install

$ npm install --save is-this-local

Browser only. Chiefly meant to be used with Browserify.

Usage

// if current page host is a loopback address

var isLocal = require('is-this-local');
//=> true


// is current page host is not a loopback address

var isLocal = require('is-this-local');
//=> false

License

MIT © Victor Nascimento Bakke

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago