pg-numeric

reads PostgreSQL binary format for numeric values into a string

parsing bug fixed in v1.0.2
Last updated 5 years ago by charmander .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install pg-numeric 
SYNC missed versions from official npm registry.

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'

Current Tags

  • 1.0.2                                ...           latest (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1 [deprecated]           ...           5 years ago
  • 1.0.0 [deprecated]           ...           5 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE