Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 967 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 967 Bytes

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