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

Predicate for whether the current document location is localhost

Notifications You must be signed in to change notification settings

Gipphe/is-this-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Predicate for whether the current document location is localhost

Resources

Stars

Watchers

Forks

Packages

No packages published