Postgres Bytea Parser

JSON →
library 3.0.0 ·javascript
verified May 27, 2026

The `postgres-bytea` library provides robust functionality for parsing and encoding PostgreSQL `bytea` binary strings within Node.js applications. It supports both the modern 'hex' format (prefixed with `\x`) used in PostgreSQL 9.0 and later, as well as the older 'escape' format from PostgreSQL 8 and earlier, automatically detecting the input format. The current stable version is 3.0.0. While specific release cadence is not explicitly stated, the package appears actively maintained given recent NPM activity. Its key differentiation lies in its dual approach to `bytea` handling: a direct `decode` function for quick conversions and stream-based `Decoder` and `Encoder` classes for handling larger data volumes efficiently, particularly useful with PostgreSQL's `COPY` commands.

total hits 11
actors 6 distinct systems
last hit 8d ago Script
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇺🇦 Ukraine