https://github.com/rizwanjamal/ip-check-range
🎉 NodeJS module for checking if IP exists in the list of "White Listed IP's". 🚀
https://github.com/rizwanjamal/ip-check-range
ip-range ip-range-check npm-module npm-package npmjs
Last synced: about 1 year ago
JSON representation
🎉 NodeJS module for checking if IP exists in the list of "White Listed IP's". 🚀
- Host: GitHub
- URL: https://github.com/rizwanjamal/ip-check-range
- Owner: Rizwanjamal
- Created: 2018-10-18T15:10:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T10:13:10.000Z (over 7 years ago)
- Last Synced: 2025-03-24T12:09:08.899Z (about 1 year ago)
- Topics: ip-range, ip-range-check, npm-module, npm-package, npmjs
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ip-check-range
[](https://www.npmjs.com/package/ip-check-range)
[](https://www.npmjs.com/package/ip-check-range)
[](https://travis-ci.org/gosquared/ipcheck)
[](https://david-dm.org/gosquared/ipcheck)
[](https://www.npmjs.com/package/ip-check-range)
Allowing you to check request IP or anyother IP for Range Matches.
## Install
`npm install ip-check-range --save`
## Usage
```js
var IPCheckRange = require('ip-check-rage');
IPCheckRange('192.168.34.253', ['192.168.0.1', '192.168.0-78.253']); //= true
IPCheckRange('192.198.34.1', ['192.168-255.34.1', '192.168.0-78,253']); //= true
IPCheckRange('192.13.134.223', ['192.*.*.*', '192.168.*,*']); //= true
IPCheckRange('192.16.0.124', ['192.168.0.1-178', '192.168.0-78,253']); //= false
IPCheckRange('192.168.34.76', ['192.168.0.1', '192.168.0-78.23-253']); //= true
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/Rizwanjamal/ip-check-range/issues/new).
But before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.
## [Rizwan Jamal](http://www.rizwanjamal.tk) [![rizwanjamal.tk][author-www-img]][author-www-url]
[npmjs-url]: https://github.com/Rizwanjamal/ip-check-range
[npmjs-img]: https://img.shields.io/npm/v/ip-check-range.svg?label=ip-check-range
[license-url]: https://github.com/Rizwanjamal/ip-check-range/blob/master/LICENSE
[license-img]: https://img.shields.io/npm/l/ip-check-range.svg
[downloads-url]: https://www.npmjs.com/package/ip-check-range
[downloads-img]: https://img.shields.io/npm/dm/ip-check-range.svg
[author-www-url]: http://www.rizwanjamal.tk
[author-www-img]: https://img.shields.io/badge/www-rizwanjamal.tk-fe7d37.svg