Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
/ private-ip Public archive
forked from frenchbread/private-ip

Check if IP address is private.

License

Notifications You must be signed in to change notification settings

418sec/private-ip

 
 

Repository files navigation

private-ip

Check if IP address is private.

NPM

NPM

Installation

$ npm install private-ip --save

or

$ yarn add private-ip

Usage

import isIpPrivate from 'private-ip';

isIpPrivate('10.0.0.0');
// => true

isIpPrivate('101.0.26.90');
// => false

Dev

Tests
$ npm run test
Build
$ npm run build

Authors

Credits

https://github.com/frenchbread/private-ip/blob/master/CREDITS.md

License

MIT

IANA Reserved IP list

https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry-1.csv

About

Check if IP address is private.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%