Installations
npm install pg-range-parser
Developer Guide
Typescript
No
Module System
CommonJS
NPM Version
1.4.28
Score
67.7
Supply Chain
76
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
goodybag
Download Statistics
Total Downloads
37,058
Last Day
2
Last Week
12
Last Month
48
Last Year
516
GitHub Statistics
3 Stars
1 Commits
1 Forks
5 Watchers
1 Branches
3 Contributors
Updated on May 31, 2016
Bundle Size
519.00 B
Minified
321.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
37,058
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
5
PG Range
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.
API
Root Namespace
.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
- 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
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
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