{"_id":"pako","_rev":"33-421e04606c7938098df40b865ee32617","name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","dist-tags":{"latest":"0.2.8"},"versions":{"0.0.0":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support.","version":"0.0.0","keywords":["zlib","deflate","inflate"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","benchmark":"*","ansi":"*","lodash":"2.4.1","async":"0.2.10"},"_id":"pako@0.0.0","dist":{"shasum":"9d63e90867d1d1c8d565527a15a671a2666d21d5","tarball":"http://registry.npmjs.org/pako/-/pako-0.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"directories":{}},"0.1.0":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.1.0","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","chai":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"2.4.1","async":"0.2.10","grunt":"~0.4.0","grunt-cli":"~0.1.13","grunt-saucelabs":"~5.0.1","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.1.0","dist":{"shasum":"c6bc3e165098740ce5409a39269267cb48bb945b","tarball":"http://registry.npmjs.org/pako/-/pako-0.1.0.tgz"},"_from":"https://github.com/nodeca/pako/tarball/0.1.0","_resolved":"https://github.com/nodeca/pako/tarball/0.1.0","scripts":{},"_npmVersion":"1.3.24","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"directories":{}},"0.1.1":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.1.1","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","chai":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"2.4.1","async":"0.2.10","grunt":"~0.4.0","grunt-cli":"~0.1.13","grunt-saucelabs":"~5.0.1","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.1.1","dist":{"shasum":"5053d4d5d90b1681e037b3c60e857d4756d5f25f","tarball":"http://registry.npmjs.org/pako/-/pako-0.1.1.tgz"},"_from":"https://github.com/nodeca/pako/tarball/0.1.1","_resolved":"https://github.com/nodeca/pako/tarball/0.1.1","scripts":{},"_npmVersion":"1.4.3","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"directories":{}},"0.2.0":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.0","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","chai":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"2.4.1","async":"0.2.10","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~5.1.1","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.2.0","dist":{"shasum":"bb93787e8c60587c8b13cd3cd8802e9d6f5dd8d5","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.0.tgz"},"_from":"https://github.com/nodeca/pako/tarball/0.2.0","_resolved":"https://github.com/nodeca/pako/tarball/0.2.0","scripts":{},"_npmVersion":"1.4.3","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"directories":{}},"0.2.1":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.1","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","chai":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"2.4.1","async":"0.2.10","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~5.1.1","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.2.1","dist":{"shasum":"65150277c8447a9e83877f00476d533e1d380ad3","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.1.tgz"},"_from":"https://github.com/nodeca/pako/tarball/0.2.1","_resolved":"https://github.com/nodeca/pako/tarball/0.2.1","scripts":{},"_npmVersion":"1.4.3","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"directories":{}},"0.2.2":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.2","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","chai":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"2.4.1","async":"0.2.10","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~5.1.1","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.2.2","dist":{"shasum":"0154fcebb02d53d188827edbdc37d358e3a12cbe","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.2.tgz"},"_from":"https://github.com/nodeca/pako/tarball/0.2.2","_resolved":"https://github.com/nodeca/pako/tarball/0.2.2","scripts":{},"_npmVersion":"1.4.3","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"directories":{}},"0.2.3":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.3","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"*","async":"*","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~8.0.2","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.2.3","_shasum":"da97260282d270c43f210d9e9bf9abdf54072641","_from":"https://github.com/nodeca/pako/tarball/0.2.3","_resolved":"https://github.com/nodeca/pako/tarball/0.2.3","scripts":{},"_npmVersion":"1.4.9","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"da97260282d270c43f210d9e9bf9abdf54072641","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.3.tgz"},"directories":{}},"0.2.4":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.4","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"*","async":"*","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~8.0.2","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.2.4","_shasum":"015399af84fc28c6d9ce5abe5874b7dcb968a751","_from":"https://github.com/nodeca/pako/tarball/0.2.4","_resolved":"https://github.com/nodeca/pako/tarball/0.2.4","scripts":{},"_npmVersion":"1.4.9","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"015399af84fc28c6d9ce5abe5874b7dcb968a751","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.4.tgz"},"directories":{}},"0.2.5":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.5","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"*","async":"*","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~8.0.2","grunt-contrib-connect":"~0.7.1"},"_id":"pako@0.2.5","_shasum":"36df19467a3879152e9adcc44784f07d0a80c525","_from":"https://github.com/nodeca/pako/tarball/0.2.5","_resolved":"https://github.com/nodeca/pako/tarball/0.2.5","scripts":{},"_npmVersion":"1.4.9","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"36df19467a3879152e9adcc44784f07d0a80c525","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.5.tgz"},"directories":{}},"0.2.6":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.6","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","benchmark":"*","ansi":"*","browserify":"*","uglify-js":"*","jshint":"*","istanbul":"*","ndoc":"*","lodash":"*","async":"*","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~8.6.0","grunt-contrib-connect":"~0.9.0"},"gitHead":"4ace00c10b5f4be0b008c3799fd5b076173f19c2","_id":"pako@0.2.6","scripts":{},"_shasum":"3e0c548353b859ab9c8005fac706bdd6c7af505f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"3e0c548353b859ab9c8005fac706bdd6c7af505f","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.6.tgz"},"directories":{}},"0.2.7":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.7","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"*","benchmark":"*","ansi":"*","browserify":"*","eslint":"0.17.1","eslint-plugin-nodeca":"~1.0.3","uglify-js":"*","istanbul":"*","ndoc":"*","lodash":"*","async":"*","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~8.6.0","grunt-contrib-connect":"~0.9.0"},"gitHead":"8070869d8cef31f291e02498c28d7f423de34ade","_id":"pako@0.2.7","scripts":{},"_shasum":"90e8917affd5ee2b69dfe943ec16b783c4e0c441","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"90e8917affd5ee2b69dfe943ec16b783c4e0c441","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.7.tgz"},"directories":{}},"0.2.8":{"name":"pako","description":"zlib port to javascript - fast, modularized, with browser support","version":"0.2.8","keywords":["zlib","deflate","inflate","gzip"],"homepage":"https://github.com/nodeca/pako","contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"main":"./index.js","devDependencies":{"mocha":"1.21.5","benchmark":"*","ansi":"*","browserify":"*","eslint":"0.17.1","eslint-plugin-nodeca":"~1.0.3","uglify-js":"*","istanbul":"*","ndoc":"*","lodash":"*","async":"*","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-saucelabs":"~8.6.0","grunt-contrib-connect":"~0.9.0"},"gitHead":"08c5cfb4fe2f744bedbd249be908bba0d8fc0946","_id":"pako@0.2.8","scripts":{},"_shasum":"15ad772915362913f20de4a8a164b4aacc6165d6","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"15ad772915362913f20de4a8a164b4aacc6165d6","tarball":"http://registry.npmjs.org/pako/-/pako-0.2.8.tgz"},"directories":{}}},"readme":"pako - zlib port to javascript, very fast!\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__Why pako is cool:__\n\n- Almost as fast in modern JS engines as C implementation (see benchmarks).\n- Works in browsers, you can browserify any separate component.\n- Chunking support for big blobs.\n- Results are binary equal to well known [zlib](http://www.zlib.net/) (now v1.2.8 ported).\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__Famous projects, using pako:__\n\n- [browserify](http://browserify.org/) (via [browserify-zlib](https://github.com/devongovett/browserify-zlib))\n- [JSZip](http://stuk.github.io/jszip/)\n- [mincer](https://github.com/nodeca/mincer)\n- [JS-Git](https://github.com/creationix/js-git) and\n [Tedit](https://chrome.google.com/webstore/detail/tedit-development-environ/ooekdijbnbbjdfjocaiflnjgoohnblgf)\n by [@creatronix](https://github.com/creationix)\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 partialy afferted by marshling (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\nbrowser:\n\n```\nbower 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`, `deflateSetDictionary`, `deflateTune`.\n- __inflate__ - `inflateGetDictionary`, `inflateCopy`, `inflateMark`,\n `inflatePrime`, `inflateSetDictionary`, `inflateSync`, `inflateSyncPoint`,\n `inflateUndermine`.\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 tutoruals 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\n\nLicense\n-------\n\nMIT\n","maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"time":{"modified":"2015-09-14T12:21:28.534Z","created":"2014-02-19T16:02:05.385Z","0.0.0":"2014-02-19T16:02:05.385Z","0.1.0":"2014-03-15T17:36:20.687Z","0.1.1":"2014-03-20T02:31:52.798Z","0.2.0":"2014-04-18T05:44:58.777Z","0.2.1":"2014-05-01T18:14:04.622Z","0.2.2":"2014-06-04T07:31:28.956Z","0.2.3":"2014-06-08T20:46:47.067Z","0.2.4":"2014-07-07T05:50:16.563Z","0.2.5":"2014-07-19T10:08:28.458Z","0.2.6":"2015-03-24T01:51:57.856Z","0.2.7":"2015-06-09T19:58:14.372Z","0.2.8":"2015-09-14T12:21:28.534Z"},"readmeFilename":"README.md","homepage":"https://github.com/nodeca/pako","keywords":["zlib","deflate","inflate","gzip"],"repository":{"type":"git","url":"git://github.com/nodeca/pako.git"},"contributors":[{"name":"Andrei Tuputcyn","url":"https://github.com/andr83"},{"name":"Vitaly Puzrin","url":"https://github.com/puzrin"}],"bugs":{"url":"https://github.com/nodeca/pako/issues"},"license":{"type":"MIT","url":"https://github.com/nodeca/pako/blob/master/LICENSE"},"users":{"maxogden":true,"guybrush":true,"devongovett":true,"sidwood":true,"pid":true,"ivansky":true,"vlazar":true,"gudvinr":true,"flozz":true},"_attachments":{},"_etag":"\"EQFLSMRUNEBVYOYX20RWIEMB3\""}