Skip to content

πŸŽ‰ NodeJS module for checking if IP exists in the list of "White Listed IP's". πŸš€

Notifications You must be signed in to change notification settings

Rizwanjamal/ip-check-range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ip-check-range

npm (scoped) npm bundle size (minified) Travis Dependencies

NPM

Allowing you to check request IP or anyother IP for Range Matches.

Install

npm install ip-check-range --save

Usage

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. But before doing anything, please read the CONTRIBUTING.md guidelines.

About

πŸŽ‰ NodeJS module for checking if IP exists in the list of "White Listed IP's". πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published