Gathering detailed insights and metrics for ts-postcode-validator
Gathering detailed insights and metrics for ts-postcode-validator
Gathering detailed insights and metrics for ts-postcode-validator
Gathering detailed insights and metrics for ts-postcode-validator
npm install ts-postcode-validator
Typescript
Module System
Node Version
NPM Version
71.9
Supply Chain
79.4
Quality
74.9
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
21,055
Last Day
11
Last Week
75
Last Month
267
Last Year
3,128
23 Commits
2 Watching
2 Branches
1 Contributors
Latest Version
0.0.2
Package Id
ts-postcode-validator@0.0.2
Unpacked Size
145.86 kB
Size
54.65 kB
File Count
8
NPM Version
6.5.0
Node Version
11.6.0
Cumulative downloads
Total Downloads
Last day
-45%
11
Compared to previous day
Last week
-17.6%
75
Compared to previous week
Last month
14.6%
267
Compared to previous month
Last year
-6%
3,128
Compared to previous year
5
A TS fork of the fantastic postcode-validator
Node.js module for parsing and validating postcodes. Country specific validation is supported for most countries including UK, US, Canada, Japan and many others.
Note: I haven't tested all combinations of postcodes for the extended country regular expressions. Please be free to raise a PR with increased test coverage for as many countries possible.
1npm install ts-postcode-validator
1var postcode = require('ts-postcode-validator'); 2postcode.validate('W85TT', 'UK'); // returns true 3postcode.validate('1234567', 'UK'); // returns false 4 5country codes: US, UK, CA, JP, INT(International), etc
1import { validate } from "ts-postcode-validator"; 2validate("W85TT", "UK"); // returns true 3validate("1234567", "UK"): // returns false
Run the unit tests with:
1yarn test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/23 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
39 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
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