{"name":"inflate-until","version":"0.0.6","description":"take buffer chunks until the inflated result is === size","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/inflate-until.git"},"keywords":["inflate","until","stream"],"testling":{"files":"test.js","browsers":["ie/9..latest","firefox/10..latest","chrome/20..latest","safari/latest","iphone/6","ipad/6"]},"browser":{"./zlib.js":"./zlib-browser.js"},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","gitHead":"23d0fd17a3656f4584893877b31b37e957fb8567","devDependencies":{"tape":"~0.3.1"},"dependencies":{"through":"~2.2.7"},"readme":"# inflate-until\n\na module for that really odd case where you know\nhow big the thing you're deflating is, but you want\nto deflate it *and* know how big the compressed data\nwas.\n\n**NB**: this is slow.\n\n```javascript\n\nvar stream = inflateUntil(256)\n\ninflateUntil.write(buf, function(info) {\n  if(info) {\n\n  }\n})\n\n```\n\n## API\n\n#### inflateUntil(size) -> inflate\n\ncreate an inflateUntil function.\n\n#### inflate(buf, ready) -> undefined\n\nadd another `buf` to the available bytes. calls `ready`\nwhen finished -- if there was enough data to determine whether\nor not we've reached `size` + the adler checksum, `ready`\nwill receive an `info` argument:\n\n```javascript\n{ compressed: Number    // size of compressed bytes written\n, rest: Buffer          // Buffer representing unused bytes\n, data: Buffer }        // uncompressed data\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_id":"inflate-until@0.0.6","dist":{"shasum":"b899025452bddc492c7db2c8335f5ee1cb930d00","tarball":"http://registry-npm.ywwl.com/inflate-until/download/inflate-until-0.0.6.tgz","integrity":"sha512-UthdRPt6qYqYm2d8nRCNxTAcPyqJl4plWC1K7YHq57bCpA+RiABzWTscT51+ZMvCSlM0YIE4XT3PIyKOiERcFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMsRBOWHwcIaKyJwpHBKglxqNoytK88d+3V05hpEPGsAiAjic7EbnykMy2tcCFUc62sdV7Acd3vn6xlhVM6EKaCgQ=="}],"size":2619,"noattachment":false,"key":"/inflate-until/-/inflate-until-0.0.6.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"publish_time":1364888447049,"_cnpm_publish_time":1364888447049,"dist-tags":{"latest":"0.0.6"}}