json-buffer
JSON parse & stringify that supports binary via bops & base64
Last updated 2 years ago by dominictarr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install json-buffer 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.1                                ...           latest (2 years ago)

15 Versions

  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.11                                ...           6 years ago
  • 2.0.10                                ...           6 years ago
  • 2.0.9                                ...           6 years ago
  • 2.0.8                                ...           6 years ago
  • 2.0.7                                ...           7 years ago
  • 2.0.6                                ...           7 years ago
  • 2.0.5                                ...           7 years ago
  • 2.0.4                                ...           7 years ago
  • 2.0.3                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago

Copyright 2014 - 2017 © taobao.org |