docker-lemp-node/www/nodejs/node_modules/json-buffer
2022-03-27 18:02:38 +02:00
..
test upload 2022-03-27 18:02:38 +02:00
.npmignore upload 2022-03-27 18:02:38 +02:00
.travis.yml upload 2022-03-27 18:02:38 +02:00
index.js upload 2022-03-27 18:02:38 +02:00
LICENSE upload 2022-03-27 18:02:38 +02:00
package.json upload 2022-03-27 18:02:38 +02:00
README.md upload 2022-03-27 18:02:38 +02:00

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