Installations
npm install @ofarukcaki/ip-range
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.15.0
NPM Version
6.13.4
Score
70.9
Supply Chain
77
Quality
75.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
ofarukcaki
Download Statistics
Total Downloads
1,954
Last Day
5
Last Week
11
Last Month
29
Last Year
458
GitHub Statistics
1 Stars
20 Commits
2 Watching
1 Branches
1 Contributors
Bundle Size
622.00 B
Minified
381.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.2
Package Id
@ofarukcaki/ip-range@1.0.2
Unpacked Size
15.95 kB
Size
5.11 kB
File Count
11
NPM Version
6.13.4
Node Version
12.15.0
Total Downloads
Cumulative downloads
Total Downloads
1,954
Last day
0%
5
Compared to previous day
Last week
22.2%
11
Compared to previous week
Last month
-9.4%
29
Compared to previous month
Last year
-31%
458
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
6
ip-range
Check if the given IP address is in the provided range.
Install
npm i @ofarukcaki/ip-range
Usage
1const Iprange = require('@ofarukcaki/ip-range').default; 2 3const initialRanges = [ 4 ['0.0.0.1', '0.0.0.255'], 5 ['123.123.0.0', '123.123.124.255'], 6 ['66.0.0.0', '66.1.0.0'], 7]; 8 9/* Initialize a new range by providing an array of string arrays 10 * consists of start-end addresses of an IP. 11 * Don't pass a parameter if you don't want to initialize on creation 12 */ 13const range = new Iprange(initialRanges); 14 15// add a new range 16const newRange = ['192.0.0.1', '192.0.0.5']; 17range.addRange(newRange); 18 19console.log(range.checkIP('123.123.1.0')); // true 20 21console.log(range.checkIP('66.0.1.255')); // true 22 23console.log(range.checkIP('192.0.0.0')); // false 24
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/20 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-01-06
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More