@nj-utils/pako-zip
v1.0.5
Published
js zip
Downloads
6
Maintainers
Readme
@nj-utils/pako-zip
import pako,{ zip, unzip } from '@nj-utils/pako-zip';
const obj = { name: "kingwell", age: 18 };
const compressed = pako.zip(JSON.stringify(obj));
console.log(compressed); //H4sIAAAAAAAAA1M1d1I1MspLzE0FUqrGjkAyOzMvvTw1JwckYOQMJBPToZKGFqrmLgAsZnQ4MgAAAA==
console.log(JSON.parse(pako.unzip(compressed))); // { name: 'kingwell', age: 18 }