@tadashi/jsonb
v5.0.1
Published
Compress or decompress any data
Downloads
52
Readme
jsonb
Compress or decompress any data
Install
$ npm i -S @tadashi/jsonb
Usage
import {compress, decompress} from '@tadashi/jsonb'
const c = await compress({a: 'foo', b: 'bar'})
// => Cw2AW3siYSI6MSwiYiI6Mn0sImZvbyIsImJhciJdAw==
const d = await decompress(c)
// => {a: 'foo', b: 'bar'}
License
MIT © Thiago Lagden