npm.io
1.0.2 • Published 6 years ago

pg-numeric

Licence
ISC
Version
1.0.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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'