Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Latest commit

 

History

History
34 lines (20 loc) · 762 Bytes

README.md

File metadata and controls

34 lines (20 loc) · 762 Bytes

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