/ live.thehmm.nl / back / node_modules / json-buffer /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/2 years ago -  
[   ]LICENSE7 years ago1.0K 
[TXT]README.md7 years ago659 d7c1522 post receive test [كارل مبارك]
[   ]index.js7 years ago1.5K 
[   ]package.json2 years ago1.8K 
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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80