Go to file
openKylinBot f76c283678 Import Debian changes 3.0.1+~3.0.0-ok1
node-json-buffer (3.0.1+~3.0.0-ok1) nile; urgency=medium

  * Build for openKylin.
2024-05-07 15:08:40 +08:00
debian Import Debian changes 3.0.1+~3.0.0-ok1 2024-05-07 15:08:40 +08:00
test Import Upstream version 3.0.1 2023-02-22 13:51:39 +08:00
types-json-buffer Import Upstream version 3.0.1+~3.0.0 2024-05-07 15:08:39 +08:00
.travis.yml Import Upstream version 3.0.1 2023-02-22 13:51:39 +08:00
LICENSE Import Upstream version 3.0.1 2023-02-22 13:51:39 +08:00
README.md Import Upstream version 3.0.1 2023-02-22 13:51:39 +08:00
index.js Import Upstream version 3.0.1 2023-02-22 13:51:39 +08:00
package.json Import Upstream version 3.0.1 2023-02-22 13:51:39 +08: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(Buffer.from('hello there!'))

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

License

MIT