@nj-utils/pako-zip
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@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 }

Package Sidebar

Install

npm i @nj-utils/pako-zip

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

16.6 kB

Total Files

7

Last publish

Collaborators

  • kingwell