# json-buffer

> JSON parse & stringify that supports binary via bops & base64

Latest version **3.0.1** (published 2018-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install json-buffer
pnpm add json-buffer
yarn add json-buffer
bun add json-buffer
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2018-09-10 |
| First published | 2013-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/json-buffer) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 41 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/json-buffer
- Repository: https://github.com/dominictarr/json-buffer
- Issues: https://github.com/dominictarr/json-buffer/issues
- npm.io page: https://npm.io/package/json-buffer

## Recent versions

- 3.0.1 (latest) — 2018-09-10
- 3.0.0 — 2017-07-17
- 2.0.11 — 2014-10-19
- 2.0.10 — 2014-10-19
- 2.0.9 — 2014-04-23
- 2.0.8 — 2014-04-14
- 2.0.7 — 2013-08-14
- 2.0.6 — 2013-08-13
- 2.0.5 — 2013-07-22
- 2.0.4 — 2013-07-17
- 2.0.3 — 2013-06-19
- 2.0.2 — 2013-05-21
- 2.0.1 — 2013-05-21
- 2.0.0 — 2013-05-21
- 1.0.0 — 2013-05-20

## README

# json-buffer

JSON functions that can convert buffers!

[![build status](https://secure.travis-ci.org/dominictarr/json-buffer.png)](http://travis-ci.org/dominictarr/json-buffer)

[![testling badge](https://ci.testling.com/dominictarr/json-buffer.png)](https://ci.testling.com/dominictarr/json-buffer)

JSON mangles buffers by converting to an array...
which isn't helpful. json-buffers converts to base64 instead,
and deconverts base64 to a buffer.

``` js
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

---
_Source: https://npm.io/package/json-buffer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
