Minimum viable parser and serializer for PostgreSQL range types (e.g., int4range, tsrange, daterange). Version 1.0.0 is stable but unmaintained since 2015. Converts between Postgres string representation like '[2015-01-01,2015-02-01)' and structured objects {start:{value,inclusive}, end:{value,inclusive}}. No dependencies, works in Node.js only. Not actively developed; alternative is node-pg's built-in range type support or pg-range.
npm install pg-range-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse a Postgres range string into an object, then serialize it back.
Migrate to pg-range or upgrade to node-pg v8+ which includes built-in range parsing.
Always validate input before calling parse().
Handle infinite bounds manually or use a library that supports them.
Run 'npm install pg-range-parser' and double-check the spelling.
Use require('pg-range-parser') instead of import.Ensure the string follows pattern like '[start,end)', with parentheses/brackets and comma.
No dependency data recorded yet.