【文件属性】:
文件名称:jsonb:压缩或解压缩JSON
文件大小:95KB
文件格式:ZIP
更新时间:2021-05-03 02:12:32
json base64 buffer compress jsonb
jsonb
压缩或解压缩任何数据
安装
$ npm i -S @tadashi/jsonb
用法
const { compress , decompress } = require ( '@tadashi/jsonb' ) ;
( async ( ) => {
const c = await compress ( { a : 'foo' , b : 'bar' } )
// => CwiAe2E6ImZvbyIsYjoiYmFyIn0D
const d = await decompress ( c )
console . log ( d ) // => {a: 'foo', b: 'bar'}
} ) ( )
执照
麻省理工学院:copyright:
【文件预览】:
jsonb-master
----.eslintrc.js(531B)
----.travis.yml(172B)
----LICENSE(1KB)
----test()
--------index.js(2KB)
----README.md(888B)
----.editorconfig(233B)
----.gitignore(883B)
----index.js(2KB)
----bin()
--------pkg(1KB)
--------_fn(126B)
--------zera(247B)
----package-lock.json(336KB)
----package.json(741B)