DiscofyAPI/node_modules/json-buffer
onsaliyo 218326c402 API inicial 2021-03-25 17:23:36 +01:00
..
test API inicial 2021-03-25 17:23:36 +01:00
.npmignore API inicial 2021-03-25 17:23:36 +01:00
.travis.yml API inicial 2021-03-25 17:23:36 +01:00
LICENSE API inicial 2021-03-25 17:23:36 +01:00
README.md API inicial 2021-03-25 17:23:36 +01:00
index.js API inicial 2021-03-25 17:23:36 +01:00
package.json API inicial 2021-03-25 17:23:36 +01:00

README.md

json-buffer

JSON functions that can convert buffers!

build status

testling badge

JSON mangles buffers by converting to an array... which isn't helpful. json-buffers converts to base64 instead, and deconverts base64 to a buffer.

var JSONB = require('json-buffer')
var Buffer = require('buffer').Buffer

var str = JSONB.stringify(new Buffer('hello there!'))

console.log(JSONB.parse(str)) //GET a BUFFER back

License

MIT