Installations
npm install is-my-ip-valid
Developer Guide
Typescript
No
Module System
N/A
Node Version
17.3.1
NPM Version
8.3.0
Score
99.5
Supply Chain
80.8
Quality
74.9
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
LinusU
Download Statistics
Total Downloads
388,386,426
Last Day
77,122
Last Week
590,629
Last Month
3,441,749
Last Year
37,129,592
GitHub Statistics
8 Stars
7 Commits
3 Watching
1 Branches
2 Contributors
Bundle Size
1.33 kB
Minified
657.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
388,386,426
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
2
Is my IP valid
A small lib to validate IP addresses.
Installation
1npm install --save is-my-ip-valid
Usage
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
Acknowledgements
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
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
- 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'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
3.2
/10
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