Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frenchbread/private-ip
Check if IP address is private.
https://github.com/frenchbread/private-ip
address check ip ip-address ipv4 ipv6 lan network networking private
Last synced: 13 days ago
JSON representation
Check if IP address is private.
- Host: GitHub
- URL: https://github.com/frenchbread/private-ip
- Owner: frenchbread
- License: mit
- Created: 2016-08-02T18:21:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-31T23:05:50.000Z (2 months ago)
- Last Synced: 2024-10-16T19:35:59.136Z (29 days ago)
- Topics: address, check, ip, ip-address, ipv4, ipv6, lan, network, networking, private
- Language: JavaScript
- Homepage:
- Size: 586 KB
- Stars: 33
- Watchers: 3
- Forks: 16
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
private-ip
--> Check if IP address is private.
### badges
[![huntr](https://cdn.huntr.dev/huntr_security_badge_mono.svg)](https://huntr.dev)
### Installation
```bash
❯ npm install private-ip --saveor
❯ yarn add private-ip
```### Usage
```js
import is_ip_private from 'private-ip'is_ip_private('10.0.0.0')
// => trueis_ip_private('101.0.26.90')
// => falseis_ip_private('not.an.ip.com')
// => undefined```
### Development
##### Tests
```bash
$ yarn run test
```##### Build
```bash
$ yarn run build
```### Authors
- Damir Mustafin [@frenchbread](https://github.com/frenchbread)
- Sick.Codes [@sickcodes](https://github.com/sickcodes) - [https://twitter.com/sickcodes](https://twitter.com/sickcodes)
- John Jackson [@johnjhacking](https://github.com/johnjhacking) - [https://twitter.com/johnjhacking](https://twitter.com/johnjhacking)
- Nick Sahler [@nicksahler](https://github.com/nicksahler) - [https://twitter.com/tensor_bodega](https://twitter.com/tensor_bodega)### Credits
[https://github.com/frenchbread/private-ip/blob/master/CREDITS.md](https://github.com/frenchbread/private-ip/blob/master/CREDITS.md)
### License
[MIT](https://github.com/frenchbread/private-ip/blob/master/LICENSE)### IANA Reserved IP list
https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry-1.csv