{"bugs":{"url":"https://github.com/brianloveswords/zlib-browserify/issues"},"dist":{"shasum":"240ccdbfd0203fa842b130deefb1414122c8cc50","tarball":"https://registry.npmjs.org/zlib-browserify/-/zlib-browserify-0.0.3.tgz","integrity":"sha512-KW42YGoQKq7+oU46deeWMUsrPyBruEWV1DoObBTMfEC2LnTqQIrwKVKrPoz2mn5DXESW4Ca/lIP2MqGHrt/WFA==","signatures":[{"sig":"MEQCIG6D3spkxge8OrvcOj1Vr5iVGfIjNlnLCJ3F3eyFP0msAiA+C40hUy2S+gFh0tRb+Gpu7FcPkP7+U1H6yQAX3YU4Fw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"zlib-browserify","_from":".","author":{"name":"Brian J. Brennan"},"readme":"# zlib-browserify [![Build Status](https://travis-ci.org/brianloveswords/zlib-browserify.png?branch=master)](https://travis-ci.org/brianloveswords/zlib-browserify)\n\nZlib in yo' browser.\n\n# What is this?\n\nThis is a very small wrapper for https://github.com/imaya/zlib.js. Fixes\nsome very minor API inconsistencies. Only implements `inflate`,\n`deflate`, `gzip` and `gunzip` so if you're doing anything extra fancy\nyou're out of luck for now.\n\n# Run tests\n\n```bash\n$ npm test\n```\n\n# Test methodology (a.k.a, \"why doesn't the output match node's zlib?\")\n\n(zlibA = native, zlibB = browserified)\n\nPretending these are sync, I do the following to test:\n\n```js\nassert(zlibB.inflate(zlibA.deflate('test')) === \"test\");\nassert(zlibA.inflate(zlibB.deflate('test')) === \"test\");\n...\n```\n\nand so on for each of the methods supported. Note, I do **not** do \n\n```js\nassert(zlibA.deflate('test') === zlibB.deflate('test'));\n```\n\nBecause node's deflate and the imaya's version do not seem to use the\nsame defaults for compression level. I haven't figured out how to change\nit yet. Anyway, rest assured, while `deflate` does not return the same\noutput, this is fully interoperable with node's native zlib.\n\n# License\n\nMIT\n","gitHead":"4be9419f0e8e9dec9629c8a538b33a4efd7df17b","license":"MIT","scripts":{"test":"./node_modules/.bin/tap test/*.test.js"},"_npmUser":{"name":"brianloveswords","email":"brianloveswords@gmail.com"},"keywords":["zlib","browserify"],"repository":{"url":"git://github.com/brianloveswords/zlib-browserify.git","type":"git"},"_npmVersion":"1.3.8","description":"Wrapper for zlib.js to allow for browserifyication","directories":{"test":"test"},"maintainers":[{"name":"brianloveswords","email":"brian@nyhacker.org"}],"dependencies":{"tape":"~0.2.2"},"readmeFilename":"readme.md","devDependencies":{"tap":"~0.3.3"},"_id":"zlib-browserify@0.0.3","version":"0.0.3"}