main
|
Last change
on this file was 62b2964, checked in by Klimentina Efremova <klimentina08642@…>, 13 days ago |
|
Project Handcraft Marketplace
|
-
Property mode
set to
100644
|
|
File size:
504 bytes
|
| Line | |
|---|
| 1 | # postgres-bytea [](https://travis-ci.org/bendrucker/postgres-bytea)
|
|---|
| 2 |
|
|---|
| 3 | > Postgres bytea parser
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | ## Install
|
|---|
| 7 |
|
|---|
| 8 | ```
|
|---|
| 9 | $ npm install --save postgres-bytea
|
|---|
| 10 | ```
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | ## Usage
|
|---|
| 14 |
|
|---|
| 15 | ```js
|
|---|
| 16 | var bytea = require('postgres-bytea');
|
|---|
| 17 | bytea('\\000\\100\\200')
|
|---|
| 18 | //=> buffer
|
|---|
| 19 | ```
|
|---|
| 20 |
|
|---|
| 21 | ## API
|
|---|
| 22 |
|
|---|
| 23 | #### `bytea(input)` -> `buffer`
|
|---|
| 24 |
|
|---|
| 25 | ##### input
|
|---|
| 26 |
|
|---|
| 27 | *Required*
|
|---|
| 28 | Type: `string`
|
|---|
| 29 |
|
|---|
| 30 | A Postgres bytea binary string.
|
|---|
| 31 |
|
|---|
| 32 | ## License
|
|---|
| 33 |
|
|---|
| 34 | MIT © [Ben Drucker](http://bendrucker.me)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.