You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 658B

123456789101112131415161718192021222324
  1. # json-buffer
  2. JSON functions that can convert buffers!
  3. [![build status](https://secure.travis-ci.org/dominictarr/json-buffer.png)](http://travis-ci.org/dominictarr/json-buffer)
  4. [![testling badge](https://ci.testling.com/dominictarr/json-buffer.png)](https://ci.testling.com/dominictarr/json-buffer)
  5. JSON mangles buffers by converting to an array...
  6. which isn't helpful. json-buffers converts to base64 instead,
  7. and deconverts base64 to a buffer.
  8. ``` js
  9. var JSONB = require('json-buffer')
  10. var Buffer = require('buffer').Buffer
  11. var str = JSONB.stringify(new Buffer('hello there!'))
  12. console.log(JSONB.parse(str)) //GET a BUFFER back
  13. ```
  14. ## License
  15. MIT