source: frontend/node_modules/json-buffer/README.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 659 bytes
Line 
1# json-buffer
2
3JSON functions that can convert buffers!
4
5[![build status](https://secure.travis-ci.org/dominictarr/json-buffer.png)](http://travis-ci.org/dominictarr/json-buffer)
6
7[![testling badge](https://ci.testling.com/dominictarr/json-buffer.png)](https://ci.testling.com/dominictarr/json-buffer)
8
9JSON mangles buffers by converting to an array...
10which isn't helpful. json-buffers converts to base64 instead,
11and deconverts base64 to a buffer.
12
13``` js
14var JSONB = require('json-buffer')
15var Buffer = require('buffer').Buffer
16
17var str = JSONB.stringify(Buffer.from('hello there!'))
18
19console.log(JSONB.parse(str)) //GET a BUFFER back
20```
21
22## License
23
24MIT
Note: See TracBrowser for help on using the repository browser.