jcb64
v4.0.1
Published
Compress json and convert to base64
Downloads
17
Readme
jcb64
Convert json to string, compress it and return a urlsafe base64 encoded string.
And the other way around.
Usage
const { pack, unpack } = require('jcb64')
const data = {
"key": "value"
}
const b64 = pack(data)
console.log('b64') //=> eJyrVspOrVSyUipLzClNVaoFAChMBSE
const json = unpack(b64)
console.log(json) //=> {key: 'value'}