17 lines
389 B
Markdown
17 lines
389 B
Markdown
|
[![Build status][ci image]][ci]
|
||
|
|
||
|
64-bit big-endian signed integer-to-string conversion designed for [pg][].
|
||
|
|
||
|
```js
|
||
|
const readInt8 = require('pg-int8');
|
||
|
|
||
|
readInt8(Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]))
|
||
|
// '283686952306183'
|
||
|
```
|
||
|
|
||
|
|
||
|
[pg]: https://github.com/brianc/node-postgres
|
||
|
|
||
|
[ci]: https://travis-ci.org/charmander/pg-int8
|
||
|
[ci image]: https://api.travis-ci.org/charmander/pg-int8.svg
|