Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charmander/pg-numeric
reads PostgreSQL binary format for numeric values into a string
https://github.com/charmander/pg-numeric
Last synced: 3 months ago
JSON representation
reads PostgreSQL binary format for numeric values into a string
- Host: GitHub
- URL: https://github.com/charmander/pg-numeric
- Owner: charmander
- License: isc
- Created: 2019-08-14T20:08:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T05:28:18.000Z (about 4 years ago)
- Last Synced: 2024-10-04T12:36:10.359Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/pg-numeric
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A reader for the PostgreSQL binary format for numeric values, producing a string. Designed for [pg][].
```js
const readNumeric = require('pg-numeric');readNumeric(Buffer.from('000600020000000a000c0d801ed203db198f0834', 'hex'))
// '1234567890.0987654321'
```[pg]: https://github.com/brianc/node-postgres