{"_id":"inflate-until","_rev":"15-c54a90677e63b794e4150738c1e51d47","name":"inflate-until","description":"take buffer chunks until the inflated result is === size","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"inflate-until","version":"0.0.1","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.1","dist":{"shasum":"5320dd5aefaf7f3a5b30af02cca2ff561ae42643","tarball":"https://registry.npmjs.org/inflate-until/-/inflate-until-0.0.1.tgz","integrity":"sha512-qGbpc8bdck/+/2BiKdWVAPHY+fSmWBmW7oPA8XqWpgAJR8u01F+h6KSgE1/T2kq8nmYVl7W0JjJJU9ffLTTwsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClBCNbyx6OIFuZQ3E1prO+EC4Kp85AfMAyd+ngJLT3yAiEAz7dpNpYRsdEEjSYS6EUdz0IZ8hNtWflr4yJhYK+QnPA="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}]},"0.0.2":{"name":"inflate-until","version":"0.0.2","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.2","dist":{"shasum":"dab1f8a574d7c01d169ff5ac51ce4a6edca46c94","tarball":"https://registry.npmjs.org/inflate-until/-/inflate-until-0.0.2.tgz","integrity":"sha512-Qv+DJeB57LnhmMHLmIR05JUJmT3JoxTOa2LYjX2Z+08Ok1PtHi/0BKjFwhcT5wgDPCS1IqrEAtZ8yNSrx41gmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIc82W/4EcjYPxYD9Z6rqKzK3XZqwy3UPlkXmDxPr4JwIhAOwadNPLkukVA4owjREpdbfijaXK8+LZtSJFWB+I74Tb"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}]},"0.0.3":{"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":"https://registry.npmjs.org/inflate-until/-/inflate-until-0.0.3.tgz","integrity":"sha512-v5PE66SB5ed0fpCnUDXKLJmm/Drk/1KZP/zSZs20mfEJNTeKGgcnCuo9PqMvHWK+ilXG9HuI7oxUGI923efKdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpGn6LOtbxvjql54eMO63+WduKJVoZ1gM0dwHOMPIWlAiEA8E0eJ3aa+1AcNPimXpcg5TiQJ/0mH3kfC98G4pp0bW4="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}]},"0.0.4":{"name":"inflate-until","version":"0.0.4","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, 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.4","dist":{"shasum":"55ad6d7f6c8223808d90e222169521c2abbdfe5b","tarball":"https://registry.npmjs.org/inflate-until/-/inflate-until-0.0.4.tgz","integrity":"sha512-DzKqwna3UFYgyyZTFR7N5Lt0theyAkJs0DhDQ/S7NgQYWRjWestZ+0e42yv1mq76QTTutRj/EeChoK65HVPEvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDMi1oNstYVOq4QItWWN01fxobrhVdyz9PHs14iubdQAiBNRavgQg1NvA0jSnVOybL2bAj+jgPn/P1yT0wu9Ny2NA=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}]},"0.0.5":{"name":"inflate-until","version":"0.0.5","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, 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.5","dist":{"shasum":"0a86bcb4774a9c75fed792cab73ff82ca820a92b","tarball":"https://registry.npmjs.org/inflate-until/-/inflate-until-0.0.5.tgz","integrity":"sha512-/hmKK8yh6MZNljMDHpNqzY78cY2NQCOW9XuqEN0LaTkbtJqUwf85vBRU9sCSYgu4RxV8X+fQvIVJgzD1XL6sRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmatIQd94+9bhJcaZRged3VJKyAoFl+FafunBYT/PzeAiEAzf7q9gqsIBtwuQvTP5IZJ3rHxe56bvpWUV+znFsH7mw="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}]},"0.0.6":{"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":"https://registry.npmjs.org/inflate-until/-/inflate-until-0.0.6.tgz","integrity":"sha512-UthdRPt6qYqYm2d8nRCNxTAcPyqJl4plWC1K7YHq57bCpA+RiABzWTscT51+ZMvCSlM0YIE4XT3PIyKOiERcFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMsRBOWHwcIaKyJwpHBKglxqNoytK88d+3V05hpEPGsAiAjic7EbnykMy2tcCFUc62sdV7Acd3vn6xlhVM6EKaCgQ=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}]}},"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","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"time":{"modified":"2022-06-19T01:11:31.801Z","created":"2013-03-24T22:28:23.297Z","0.0.1":"2013-03-24T22:28:24.465Z","0.0.2":"2013-03-24T23:36:16.538Z","0.0.3":"2013-03-25T02:12:37.629Z","0.0.4":"2013-04-01T02:54:26.574Z","0.0.5":"2013-04-01T20:32:11.604Z","0.0.6":"2013-04-02T07:40:47.049Z"},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/inflate-until.git"}}