You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
504 B
35 lines
504 B
4 years ago
|
# postgres-bytea [![Build Status](https://travis-ci.org/bendrucker/postgres-bytea.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-bytea)
|
||
|
|
||
|
> Postgres bytea parser
|
||
|
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```
|
||
|
$ npm install --save postgres-bytea
|
||
|
```
|
||
|
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
var bytea = require('postgres-bytea');
|
||
|
bytea('\\000\\100\\200')
|
||
|
//=> buffer
|
||
|
```
|
||
|
|
||
|
## API
|
||
|
|
||
|
#### `bytea(input)` -> `buffer`
|
||
|
|
||
|
##### input
|
||
|
|
||
|
*Required*
|
||
|
Type: `string`
|
||
|
|
||
|
A Postgres bytea binary string.
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT © [Ben Drucker](http://bendrucker.me)
|