Gathering detailed insights and metrics for is-my-ip-valid
Gathering detailed insights and metrics for is-my-ip-valid
Gathering detailed insights and metrics for is-my-ip-valid
Gathering detailed insights and metrics for is-my-ip-valid
npm install is-my-ip-valid
Typescript
Module System
Node Version
NPM Version
99.5
Supply Chain
80.8
Quality
74.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
388,386,426
Last Day
77,122
Last Week
590,629
Last Month
3,441,749
Last Year
37,129,592
8 Stars
7 Commits
3 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.1
Package Id
is-my-ip-valid@1.0.1
Unpacked Size
20.56 kB
Size
4.54 kB
File Count
9
NPM Version
8.3.0
Node Version
17.3.1
Cumulative downloads
Total Downloads
Last day
-31.7%
77,122
Compared to previous day
Last week
-13.5%
590,629
Compared to previous week
Last month
-25.2%
3,441,749
Compared to previous month
Last year
-12.8%
37,129,592
Compared to previous year
2
A small lib to validate IP addresses.
1npm install --save is-my-ip-valid
1const validator = require('is-my-ip-valid') 2const validate = validator() 3const validate4 = validator({ version: 4 }) 4const validate6 = validator({ version: 6 }) 5 6console.log(validate('127.0.0.1')) 7//=> true 8 9console.log(validate4('127.0.0.1')) 10//=> true 11 12console.log(validate6('127.0.0.1')) 13//=> false 14 15console.log(validate('2001:0db8:85a3:0000:0000:8a2e:0370:7334')) 16//=> true 17 18console.log(validate4('2001:0db8:85a3:0000:0000:8a2e:0370:7334')) 19//=> false 20 21console.log(validate6('2001:0db8:85a3:0000:0000:8a2e:0370:7334')) 22//=> true
The code is mostly based on this wonderful library: beaugunderson/ip-address
All regexes used are audited for catastrophic backtracking by this module: substack/safe-regex
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/7 approved changesets -- score normalized to 1
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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-23
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