Home

Awesome

is-local-ip

Check that a given IP Address is private.

Installation

Npm

npm install is-local-ip

Example

var isLocal = require('is-local-ip');

isLocal("127.0.0.1"); // true
isLocal("::ffff:127.0.0.1"); // true
isLocal("192.168.0.12"); // true
isLocal("184.55.123.2"); // false

Valid Private IP'S

Contributions

Please feel free to create a PR!