Skip to content

lagden/jsonb

Repository files navigation

jsonb

NPM version Build Status Coverage Status


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