package
reads PostgreSQL binary format for numeric values into a string
npm install pg-numericGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
4.1 kB
Includes dependencies.
A reader for the PostgreSQL binary format for numeric values, producing a string. Designed for pg.
const readNumeric = require('pg-numeric');
readNumeric(Buffer.from('000600020000000a000c0d801ed203db198f0834', 'hex'))
// '1234567890.0987654321'