Gathering detailed insights and metrics for pg-range-parser
Gathering detailed insights and metrics for pg-range-parser
npm install pg-range-parser
Typescript
Module System
NPM Version
67.7
Supply Chain
76
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
37,058
Last Day
2
Last Week
12
Last Month
48
Last Year
516
3 Stars
1 Commits
1 Forks
5 Watchers
1 Branches
3 Contributors
Updated on May 31, 2016
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
pg-range-parser@1.0.0
Size
1.61 kB
NPM Version
1.4.28
Published on
Jun 24, 2015
Cumulative downloads
Total Downloads
Last Day
-60%
2
Compared to previous day
Last Week
-42.9%
12
Compared to previous week
Last Month
336.4%
48
Compared to previous month
Last Year
92.5%
516
Compared to previous year
5
Handles parsing of postgres range types
install
npm install -S pg-range-parser
usage
1var pgRangeType = require('pg-range-parser'); 2 3// { start: { value: '2015-01-01', inclusive: true } 4// , end: { value: '2015-02-01', inclusive: false } 5// } 6pgRangeType.parse('[2015-01-01,2015-02-01)') 7 8// '[2015-01-01,2015-02-01)' 9pgRangeType.serialize({ 10 start: { value: '2015-01-01', inclusive: true } 11, end: { value: '2015-02-01', inclusive: false } 12})
pgtype will modify your enums (never drops) and add new types.
.parse( String ) -> Object
Parse a range from a string
.serialize( Object ) -> String
Serialize a range object
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-02-10
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