{"name":"inflate-until","version":"0.0.3","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":{"./index.js":"./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, function(err, info) {\n  stream.rest // the remaining contents of the \n              // last buffer\n\n  info.compressed // the compressed size\n  info.data // the inflated data\n})\n\ninflateUntil.write(buf)\ninflateUntil.write(buf)\ninflateUntil.write(buf)\ninflateUntil.write(buf)\n\n```\n\n## API\n\n#### inflateUntil(size[, ready(err, info)]) -> stream\n\ncreate an inflateUntil stream.\n\n#### stream.rest\n\nthe remaining bytes of the last buffer written.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_id":"inflate-until@0.0.3","dist":{"shasum":"d4699044c7bcf4d1194fa2ec8872fa7b60ec89b5","tarball":"http://registry-npm.ywwl.com/inflate-until/download/inflate-until-0.0.3.tgz","integrity":"sha512-v5PE66SB5ed0fpCnUDXKLJmm/Drk/1KZP/zSZs20mfEJNTeKGgcnCuo9PqMvHWK+ilXG9HuI7oxUGI923efKdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpGn6LOtbxvjql54eMO63+WduKJVoZ1gM0dwHOMPIWlAiEA8E0eJ3aa+1AcNPimXpcg5TiQJ/0mH3kfC98G4pp0bW4="}],"size":2494,"noattachment":false,"key":"/inflate-until/-/inflate-until-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"publish_time":1364177557629,"_cnpm_publish_time":1364177557629,"dist-tags":{"latest":"0.0.6"}}