{"_id":"@aftersim/pako","_rev":"4-92352a48d8b74aa67e95065bd3775e4b","name":"@aftersim/pako","dist-tags":{"latest":"1.0.11-3"},"versions":{"1.0.11":{"name":"@aftersim/pako","description":"async zlib port to javascript - fast, modularized, with browser support","version":"1.0.11","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/aftersim/pako","contributors":[{"name":"Billy Charlton","url":"https://github.com/billyc"},{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"},{"name":"Friedel Ziegelmayer","url":"https://github.com/dignifiedquire"},{"name":"Kirill Efimov","url":"https://github.com/Kirill89"},{"name":"Jean-loup Gailly"},{"name":"Mark Adler"}],"license":"(MIT AND Zlib)","repository":{"type":"git","url":"git+https://github.com/aftersim/pako.git"},"scripts":{"test":"make test"},"devDependencies":{"ansi":"^0.3.1","benchmark":"^2.1.4","browserify":"^16.2.3","buffer-from":"^1.1.1","eslint":"^5.9.0","istanbul":"^0.4.5","mocha":"^5.2.0","multiparty":"^4.1.3","ndoc":"^5.0.1","uglify-js":"=3.4.8","zlibjs":"^0.3.1"},"dependencies":{},"gitHead":"2f67f7a9369cbdec32c7aaaf82043b09e3db4a12","bugs":{"url":"https://github.com/aftersim/pako/issues"},"_id":"@aftersim/pako@1.0.11","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-EYqsfFvQBP/yMu15CoZAWKhk7eOBcn3tq9wUclTUT5haH87OnwnYTMH0nPY4DRcNALn2ymxlj5lJ3yO/nMzbOg==","shasum":"a225b2fa1c0881ad5995b5f8537e4c9b392d74a5","tarball":"https://registry.npmjs.org/@aftersim/pako/-/pako-1.0.11.tgz","fileCount":27,"unpackedSize":787834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaK00CRA9TVsSAnZWagAA35cP/ik4xbdlaorf6F2bDNf2\nuGIvHVxlzkEau5q5z5QZND5yB0cWLCilHlw9LYLtG64YvGC3d38AZ4UTuINC\nMCBVHCfI8qsKqQu/mmL69AmxxUlyZNCSofn2xw8M/i2gz9Jsl0mWRKbTaONz\n2yFk7hW6fgZfAqXmZqNBMuA9PnBs7ydRrTllmymuWT7nQ4yrBM4UmaaAG/zR\ndkJ6tA8dEN/v4nXu7QBoVr0DXdEbwKRk2u5mVDO3oT3xmwaZ5IA/1vro258F\n+dORPQ6J62GsIVkBpw6uBKSm8IHomyZMtPAdSVeuze65bOrBmHcDEIonC8MC\nUlVqqFSM+dFdDgJfnoQsgXZ9NCVXnA1OHe0ldf1kIx5w+Duc7QuL07FKU8/g\nGGZmwISfl8chKxsBkjHHYh1ixDc8WjyGpnS2fkQjoUf2nrZrO7MNQMuW2H2Q\naxwrt81jkpIsiMiJiToq9PT4Foi3cUEqKrHMqt9Vu5hqAiTDBQIiF+N7DINz\ndD6vDHQk4IHHa6KCJRrKOCVMWjKbL+cbHBfb9BH3lF59heE/OsoNfKZCY6N0\nIcdXPPKkgBnoURB+d//t6ZAlHs7xchSN/ddXJ/mla2Hsenbb/4ONzAOVY6Sj\nus66lA9R8VXdqPEr0Vg5k0GA7Dzf8Fsh0SEnfpcxKWFtj94XkwYTUgoAO4TQ\nNAq3\r\n=B/SC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmXAkZ/4ueQ5m1Lh+iyFURQU85E6tFz2Z5YTPvxgkO7AiBBSuX5Tw4J9wuy3czMg64UqP0704zacTKj4uvN1MSnzw=="}]},"maintainers":[{"name":"billyc","email":"billy@okbecause.com"}],"_npmUser":{"name":"billyc","email":"billy@okbecause.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pako_1.0.11_1600695603543_0.35618075086729184"},"_hasShrinkwrap":false},"1.0.11-1":{"name":"@aftersim/pako","description":"async zlib port to javascript - fast, modularized, with browser support","version":"1.0.11-1","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/aftersim/pako","contributors":[{"name":"Billy Charlton","url":"https://github.com/billyc"},{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"},{"name":"Friedel Ziegelmayer","url":"https://github.com/dignifiedquire"},{"name":"Kirill Efimov","url":"https://github.com/Kirill89"},{"name":"Jean-loup Gailly"},{"name":"Mark Adler"}],"license":"(MIT AND Zlib)","repository":{"type":"git","url":"git+https://github.com/aftersim/pako.git"},"scripts":{"test":"make test"},"devDependencies":{"ansi":"^0.3.1","benchmark":"^2.1.4","browserify":"^16.2.3","buffer-from":"^1.1.1","eslint":"^5.9.0","istanbul":"^0.4.5","mocha":"^5.2.0","multiparty":"^4.1.3","ndoc":"^5.0.1","uglify-js":"=3.4.8","zlibjs":"^0.3.1"},"dependencies":{},"gitHead":"178f5d4a0c01ad269fa80ba049a4c6679f9e64af","bugs":{"url":"https://github.com/aftersim/pako/issues"},"_id":"@aftersim/pako@1.0.11-1","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-11Uy860dpMw3wSKDpvcFjlqcx/SddqeuRn6xmSWhxwSlc2rUImgdLvSRGZGoNcbJ+Q9lXjKLHVrER98p79OHzw==","shasum":"903ccc286d83e38b770f4c34ff7d97851fcb4dfc","tarball":"https://registry.npmjs.org/@aftersim/pako/-/pako-1.0.11-1.tgz","fileCount":28,"unpackedSize":800654,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaK74CRA9TVsSAnZWagAAK5kQAIEysuVPNwIp6nikOQF5\nG36LVwbCa4jQUl58pAadc14dake32xSpJoyQCLdJwRHkcJpBRgfRn3OfghqG\nMkSdMrKefkF3Q57GBuRljAJtiFZXHkTfPN3ObBanrY/95MP0AmjEX0Ynqa0b\nmxJfbzhgsBeG6q+0oHPvbu9tXQy1cZQy5iiFD3RWqWzrQ3JTH27+vGevfJet\nXnV31n1Wu/OTkNv6+s7tDQSLiRot/oTjRkC0gFN1pH/UVlLi5FUNJRGAaJVj\n1m6CdC/OkwvIAB6eevgWj1ENmDBELH3pEqdQkGBc6e52iOF5rIfAaFVZWEHg\nsBEYaON/A9zx4a9Wvhu9RLFqeddtbRuyBVsVx/KeQKXrunVvtc3RGHb5IfmM\nCbZ9O8MZW20L4yTYXtX4WDvdVBoWyr34iz49h7LiQYkqOGQJ02QR6zG12LXO\nrHvzOahG0B4t9g3mu83r4ewVdfOyGOnlp9Vf5QBNvSG2/QHBZ8ehkuzoYE9N\nnj0ZfaETPaGq+GNkaGFt+W5JabymAfJwXcc/veoCM5tSp//gdYzHznX110jo\nkK9RQMGWi8Tc3SfZer3nz2Ulo5YKE1z9STsl6SxA8GuNnA5MnC5Ptg7xQbW0\nZdKOopdz0hOkUhiy8H9SkfFwGJhoQ5Jv6Rl9qBYGq8MT1Pj9KloJ0DdUD+cL\nnY4y\r\n=tovX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8SZyXfirCORv+7hJhmXsZ1QbrtcUt1GjSpqlG99Gf/AiBitwoKVRIaaymdttW7RlAPEmEmt8AcVHY9vMljdtXgcw=="}]},"maintainers":[{"name":"billyc","email":"billy@okbecause.com"}],"_npmUser":{"name":"billyc","email":"billy@okbecause.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pako_1.0.11-1_1600696055914_0.6835762654163142"},"_hasShrinkwrap":false},"1.0.11-2":{"name":"@aftersim/pako","description":"async zlib port to javascript - fast, modularized, with browser support","version":"1.0.11-2","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/aftersim/pako","contributors":[{"name":"Billy Charlton","url":"https://github.com/billyc"},{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"},{"name":"Friedel Ziegelmayer","url":"https://github.com/dignifiedquire"},{"name":"Kirill Efimov","url":"https://github.com/Kirill89"},{"name":"Jean-loup Gailly"},{"name":"Mark Adler"}],"license":"(MIT AND Zlib)","repository":{"type":"git","url":"git+https://github.com/aftersim/pako.git"},"scripts":{"test":"make test"},"devDependencies":{"ansi":"^0.3.1","benchmark":"^2.1.4","browserify":"^16.2.3","buffer-from":"^1.1.1","eslint":"^5.9.0","istanbul":"^0.4.5","mocha":"^5.2.0","multiparty":"^4.1.3","ndoc":"^5.0.1","uglify-js":"=3.4.8","zlibjs":"^0.3.1"},"dependencies":{},"gitHead":"5652f704e576c7ae6da6aef3754ba2a5958889ff","bugs":{"url":"https://github.com/aftersim/pako/issues"},"_id":"@aftersim/pako@1.0.11-2","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-rQsDtLO8uzc4i4uSCL2CB+HI+zzHN2MXOCuwwe4mbbVWq2Jr3FLVK67O9vKPU2KlLKUaV5C1ILXQ/KwvmTVz7w==","shasum":"3b614200fa279ac54b6afd97f9267a00f183cfc4","tarball":"https://registry.npmjs.org/@aftersim/pako/-/pako-1.0.11-2.tgz","fileCount":28,"unpackedSize":800668,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaLBZCRA9TVsSAnZWagAAxf0QAKI4kjxY6FxpzHmEyVvC\nH2QT4OTw88vW0x619QZFA2eFrgJy6yzFSc1D1ulcYlFV/nKqEGTzYWkyv8bn\nCF22PT8uK6Au+86rw97VZTOAUCKs+Tfue1baCfMrpBQkY0jnDsGuTg1PdrHJ\naW3TvUMGbQVv1tWwR6bezqC0VoX7S+sgVGWEjqfAc2tvtswdFbSLn5E0REKa\n1zyH8f8lavEYLHZMvo9Dgc3EGecaH3XqcG9UPS90dCj5EDdmaOAtY06Biyrh\nd7wdjNou+t0dEvJQ+aDUxyZTaLqBa3idfPJUBfK8NV8PJAAjxdmiGxcO0K3I\nIxHb5fuqTO57JNSZweK9VerdeKzhQHNXru+NWhHORv5krbLtcvigb972GWyx\nf5xRWr09/MC1gbt69r3HIa4Njrb1SVI1gHBbq/yKXbF2rZElGq2ALLRv5vKy\naOHogkaO+OzbsV9OZDGhQ4L/Y/VKDSzr3KUuBfjgV27GNbDN/CQrvpi8a/Si\ndTkDrOVlMtDx0kPCTkGdDEetShdymDmMECBfWOdmBJNwK8sntN8XS0a4/YBJ\nkE/kTonmGowHnr+lS6VIULqaWV6+aeE0Kccfcia3jSQkQbGu89xdOgRBAg++\nqj6JAv+4251M4HWsUHvzzxuZs4Dv+jDbQ8vHAbDvZhVfBQMyxvieDzs+yIbl\nGX6z\r\n=VvhJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkythYH4grmj93b6sxaZDqpJEayvKOApMXfApdq4I4IgIhAOZk2sM1YuMizcxJ0KzhZj8w/ttC5RpJAEdW+0KRHVCT"}]},"maintainers":[{"name":"billyc","email":"billy@okbecause.com"}],"_npmUser":{"name":"billyc","email":"billy@okbecause.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pako_1.0.11-2_1600696409485_0.2959484101932901"},"_hasShrinkwrap":false},"1.0.11-3":{"name":"@aftersim/pako","description":"async zlib port to javascript - fast, modularized, with browser support","version":"1.0.11-3","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/aftersim/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"},{"name":"Friedel Ziegelmayer","url":"https://github.com/dignifiedquire"},{"name":"Kirill Efimov","url":"https://github.com/Kirill89"},{"name":"Jean-loup Gailly"},{"name":"Mark Adler"},{"name":"Billy Charlton","url":"https://github.com/billyc"}],"license":"(MIT AND Zlib)","repository":{"type":"git","url":"git+https://github.com/aftersim/pako.git"},"scripts":{"test":"make test"},"devDependencies":{"ansi":"^0.3.1","benchmark":"^2.1.4","browserify":"^16.2.3","buffer-from":"^1.1.1","eslint":"^5.9.0","istanbul":"^0.4.5","mocha":"^5.2.0","multiparty":"^4.1.3","ndoc":"^5.0.1","uglify-js":"=3.4.8","zlibjs":"^0.3.1"},"dependencies":{},"gitHead":"56a1b92ae772370735cdabded23d1c779899c7bc","bugs":{"url":"https://github.com/aftersim/pako/issues"},"_id":"@aftersim/pako@1.0.11-3","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-/CYtv/ED7OX4tMuFt66rBalD6tCdMI2YmMVGKpfPb+87QYlf1fKZdOGgPuRCzYfTG9297fpCHcS4mjU/xvdtVA==","shasum":"0d5bc16e9e72ff25249dba067f37cd75d321c1d5","tarball":"https://registry.npmjs.org/@aftersim/pako/-/pako-1.0.11-3.tgz","fileCount":28,"unpackedSize":800013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaSK1CRA9TVsSAnZWagAAr3wP/3yQ8VBSrCkVScMbh417\n5pYsm3GyoOVagrrTnSyaETZ3kS5L+72voRXoniHkqrWuUskWvlzKGnsLeiWH\n8AxSGJ0SI3w/vtZslV2SvtKY5tW7Q6ZOgPxdAlHdjUfXUtN+9MWO5lt8QXAQ\nUyKyM3R008TTNKnP1kNMY1naKAUB1Qj7ZprZBoP+7JK4WOdkapMnwXUnnxCZ\n8+iwxwY/yTd6VQNABc2mjQ+Lr4z6CH9oJHusWMqnC1UrC40ju94rsow8xQGA\nSRwaMfhL3r14D9cY7AdFjqkpyhbs8JW3lKgQ6OVnx5BMrC8XufWzysa45HC0\nzOg75M8pcMXjcJ4dnatKkNJvQeUjNTplwJl4DOABBpjr+ZU44wABkKSX2Jkt\nZDTh1I13AffPFqptL1kacXwaNxnY7MvU92yqErgB2it/KsUYPey2bKrUKPTe\nPmpjXSfrxMZqsOda2lkwFvYBV28MHCqzHPbqWbtXl0muUsO5gP9E0rFm/S9y\neusy9c3/mLG/8OFM/V8Df1ZFWdOP/f2oePiFqoG4RiBsGgdmuy4KDelv3LrT\n9N/uJoKX9kvwShL+p+7lNX1pCISTEmdmg1rjubt67gV6mlUWW1jBmDp1IeHQ\nTVIt7u3rvjA4qcGpnddYPOJz0ElAD9J6f7ftdLwfgB9ZyGmXIE/cv1L4iXHS\nf1le\r\n=N10G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgAwT8yP6ueJss0dSrc9hx7bHR5D1/Bi7JnRftxdtPOAIhAO+SdpQN4VO5vHWcYALFIuwzekKbDe0i61ScKpbwa84D"}]},"maintainers":[{"name":"billyc","email":"billy@okbecause.com"}],"_npmUser":{"name":"billyc","email":"billy@okbecause.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pako_1.0.11-3_1600725684616_0.14096207378784076"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-21T13:40:03.300Z","1.0.11":"2020-09-21T13:40:03.711Z","modified":"2022-04-04T11:52:38.911Z","1.0.11-1":"2020-09-21T13:47:36.046Z","1.0.11-2":"2020-09-21T13:53:29.641Z","1.0.11-3":"2020-09-21T22:01:24.839Z"},"maintainers":[{"name":"billyc","email":"billy@okbecause.com"}],"description":"async zlib port to javascript - fast, modularized, with browser support","homepage":"https://github.com/aftersim/pako","keywords":["zlib","deflate","inflate","gzip"],"repository":{"type":"git","url":"git+https://github.com/aftersim/pako.git"},"contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"},{"name":"Friedel Ziegelmayer","url":"https://github.com/dignifiedquire"},{"name":"Kirill Efimov","url":"https://github.com/Kirill89"},{"name":"Jean-loup Gailly"},{"name":"Mark Adler"},{"name":"Billy Charlton","url":"https://github.com/billyc"}],"bugs":{"url":"https://github.com/aftersim/pako/issues"},"license":"(MIT AND Zlib)","readme":"pako\n==========================================\n\n[![Build Status](https://travis-ci.org/nodeca/pako.svg?branch=master)](https://travis-ci.org/nodeca/pako)\n[![NPM version](https://img.shields.io/npm/v/pako.svg)](https://www.npmjs.org/package/pako)\n\n> zlib port to javascript, very fast!\n\n__Why pako is cool:__\n\n- Results are binary equal to well known [zlib](http://www.zlib.net/) (now contains ported zlib v1.2.8).\n- Almost as fast in modern JS engines as C implementation (see benchmarks).\n- Works in browsers, you can browserify any separate component.\n\nThis project was done to understand how fast JS can be and is it necessary to\ndevelop native C modules for CPU-intensive tasks. Enjoy the result!\n\n\n__Benchmarks:__\n\n```\nnode v0.10.26, 1mb sample:\n\n   deflate-dankogai x 4.73 ops/sec ±0.82% (15 runs sampled)\n   deflate-gildas x 4.58 ops/sec ±2.33% (15 runs sampled)\n   deflate-imaya x 3.22 ops/sec ±3.95% (12 runs sampled)\n ! deflate-pako x 6.99 ops/sec ±0.51% (21 runs sampled)\n   deflate-pako-string x 5.89 ops/sec ±0.77% (18 runs sampled)\n   deflate-pako-untyped x 4.39 ops/sec ±1.58% (14 runs sampled)\n * deflate-zlib x 14.71 ops/sec ±4.23% (59 runs sampled)\n   inflate-dankogai x 32.16 ops/sec ±0.13% (56 runs sampled)\n   inflate-imaya x 30.35 ops/sec ±0.92% (53 runs sampled)\n ! inflate-pako x 69.89 ops/sec ±1.46% (71 runs sampled)\n   inflate-pako-string x 19.22 ops/sec ±1.86% (49 runs sampled)\n   inflate-pako-untyped x 17.19 ops/sec ±0.85% (32 runs sampled)\n * inflate-zlib x 70.03 ops/sec ±1.64% (81 runs sampled)\n\nnode v0.11.12, 1mb sample:\n\n   deflate-dankogai x 5.60 ops/sec ±0.49% (17 runs sampled)\n   deflate-gildas x 5.06 ops/sec ±6.00% (16 runs sampled)\n   deflate-imaya x 3.52 ops/sec ±3.71% (13 runs sampled)\n ! deflate-pako x 11.52 ops/sec ±0.22% (32 runs sampled)\n   deflate-pako-string x 9.53 ops/sec ±1.12% (27 runs sampled)\n   deflate-pako-untyped x 5.44 ops/sec ±0.72% (17 runs sampled)\n * deflate-zlib x 14.05 ops/sec ±3.34% (63 runs sampled)\n   inflate-dankogai x 42.19 ops/sec ±0.09% (56 runs sampled)\n   inflate-imaya x 79.68 ops/sec ±1.07% (68 runs sampled)\n ! inflate-pako x 97.52 ops/sec ±0.83% (80 runs sampled)\n   inflate-pako-string x 45.19 ops/sec ±1.69% (57 runs sampled)\n   inflate-pako-untyped x 24.35 ops/sec ±2.59% (40 runs sampled)\n * inflate-zlib x 60.32 ops/sec ±1.36% (69 runs sampled)\n```\n\nzlib's test is partially affected by marshalling (that make sense for inflate only).\nYou can change deflate level to 0 in benchmark source, to investigate details.\nFor deflate level 6 results can be considered as correct.\n\n__Install:__\n\nnode.js:\n\n```\nnpm install pako\n```\n\n\nExample & API\n-------------\n\nFull docs - http://nodeca.github.io/pako/\n\n```javascript\nvar pako = require('pako');\n\n// Deflate\n//\nvar input = new Uint8Array();\n//... fill input data here\nvar output = pako.deflate(input);\n\n// Inflate (simple wrapper can throw exception on broken stream)\n//\nvar compressed = new Uint8Array();\n//... fill data to uncompress here\ntry {\n  var result = pako.inflate(compressed);\n} catch (err) {\n  console.log(err);\n}\n\n//\n// Alternate interface for chunking & without exceptions\n//\n\nvar inflator = new pako.Inflate();\n\ninflator.push(chunk1, false);\ninflator.push(chunk2, false);\n...\ninflator.push(chunkN, true); // true -> last chunk\n\nif (inflator.err) {\n  console.log(inflator.msg);\n}\n\nvar output = inflator.result;\n\n```\n\nSometime you can wish to work with strings. For example, to send\nbig objects as json to server. Pako detects input data type. You can\nforce output to be string with option `{ to: 'string' }`.\n\n```javascript\nvar pako = require('pako');\n\nvar test = { my: 'super', puper: [456, 567], awesome: 'pako' };\n\nvar binaryString = pako.deflate(JSON.stringify(test), { to: 'string' });\n\n//\n// Here you can do base64 encode, make xhr requests and so on.\n//\n\nvar restored = JSON.parse(pako.inflate(binaryString, { to: 'string' }));\n```\n\n\nNotes\n-----\n\nPako does not contain some specific zlib functions:\n\n- __deflate__ -  methods `deflateCopy`, `deflateBound`, `deflateParams`,\n  `deflatePending`, `deflatePrime`, `deflateTune`.\n- __inflate__ - methods `inflateCopy`, `inflateMark`,\n  `inflatePrime`, `inflateGetDictionary`, `inflateSync`, `inflateSyncPoint`, `inflateUndermine`.\n- High level inflate/deflate wrappers (classes) may not support some flush\n  modes. Those should work: Z_NO_FLUSH, Z_FINISH, Z_SYNC_FLUSH.\n\n\npako for enterprise\n-------------------\n\nAvailable as part of the Tidelift Subscription\n\nThe maintainers of pako and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pako?utm_source=npm-pako&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n\n\nAuthors\n-------\n\n- Andrey Tupitsin [@anrd83](https://github.com/andr83)\n- Vitaly Puzrin [@puzrin](https://github.com/puzrin)\n\nPersonal thanks to:\n\n- Vyacheslav Egorov ([@mraleph](https://github.com/mraleph)) for his awesome\n  tutorials about optimising JS code for v8, [IRHydra](http://mrale.ph/irhydra/)\n  tool and his advices.\n- David Duponchel ([@dduponchel](https://github.com/dduponchel)) for help with\n  testing.\n\nOriginal implementation (in C):\n\n- [zlib](http://zlib.net/) by Jean-loup Gailly and Mark Adler.\n\n\nLicense\n-------\n\n- MIT - all files, except `/lib/zlib` folder\n- ZLIB - `/lib/zlib` content\n","readmeFilename":"README.md"}