{"_id":"byte-stream","_rev":"20-63d6b856ad6d0370960b0dea8fb75d81","name":"byte-stream","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","dist-tags":{"latest":"2.1.0"},"versions":{"0.0.1":{"name":"byte-stream","version":"0.0.1","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"through":"~2.3.4"},"devDependencies":{"tape":"~1.1.0"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"_id":"byte-stream@0.0.1","dist":{"shasum":"6ebc5fd53600d1f23dd89379a475b1d070de8d01","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-0.0.1.tgz","integrity":"sha512-4scfTkRrqg6JdXrYMT1PzOHcObyPpc5C4s7dmTWlLkE/pqndK45UqkcxEQUfXgO1x/d6GMx4iuJxLfjQIjtukA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1dxAPBl2Tcn+XKOw6FSd3LKqJ1Z/YuW3U7+JkwuA2iAiEApfRI/O4T3t87/mG5/mF04Shzx0klUABbub4S3sC4h5Y="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"1.0.0":{"name":"byte-stream","version":"1.0.0","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"readable-stream":"~1.1.10"},"devDependencies":{"tape":"~1.1.0","through2":"~0.4.1"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"homepage":"https://github.com/maxogden/byte-stream","_id":"byte-stream@1.0.0","dist":{"shasum":"982244dbb958ee4d4cb13ed5340c9554109337fb","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-1.0.0.tgz","integrity":"sha512-o1f/FqTDxSEYAiLeK6Zgr9ertShGwv8q6zfMN1U2wRQyHCqSMnrPPc1vr1ST/L+uysIn5ctR9vkBIO3H0eTHCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBn6GkUvfE4U1sxkr2gXDn0F7DVdU8xiSnrJk9nZftIeAiEAiH196LlQLAieptBfeNB7q1HZRJ/zPWACpGnTmtbcc18="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"1.1.0":{"name":"byte-stream","version":"1.1.0","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"readable-stream":"~1.1.10"},"devDependencies":{"tape":"~1.1.0","through2":"~0.4.1"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"homepage":"https://github.com/maxogden/byte-stream","_id":"byte-stream@1.1.0","dist":{"shasum":"c455ca9351abd12c28e2aec7ab63c303cd66bf14","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-1.1.0.tgz","integrity":"sha512-z6qc6qCnrOsygUaYuV7ALpFCTkmTAVD4wJ86Rl4H07PD8a2FMEckNVSdbuT1gZyQboGUggZwNPdIPuGHH0VNCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCdTtaJVdkVBZOOb66a5ik71nqWsMJUTrwL6hWsJZkkAIhAIWFh8uIPhy/U7oxeceleI0nYphlBfH13Y20QyGqeZwL"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"2.0.0":{"name":"byte-stream","version":"2.0.0","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"readable-stream":"~1.1.10"},"devDependencies":{"tape":"~1.1.0","through2":"~0.4.1"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"homepage":"https://github.com/maxogden/byte-stream","_id":"byte-stream@2.0.0","dist":{"shasum":"71faa6a1c7196c345fbdb2ad5f694cd2c1d45cae","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-2.0.0.tgz","integrity":"sha512-u3dOSswAr+0srY+AWedkQCuVrW2mmTm68Pg4DpW/SGQh4ovo8VQnvHiu/dmnfYCew14Hnz8T1wGjs5NIl04Gng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKcXbvZ2bIZS0s+gqh0gkBR12KnQ+kCxksXQNMS20cvAiBpPGhK3Sq9lWgSQ91NSs0PuVRf51UZ8gyT8BE3YLUtHA=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"2.0.1":{"name":"byte-stream","version":"2.0.1","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"readable-stream":"~1.1.10"},"devDependencies":{"tape":"~1.1.0","through2":"~0.4.1"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"homepage":"https://github.com/maxogden/byte-stream","_id":"byte-stream@2.0.1","dist":{"shasum":"bc2ecfb89ff55ce6c1b9cd7ab65466838f1c15f8","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-2.0.1.tgz","integrity":"sha512-1rljCGeu/AmaLOEkOTwdjSQhZD3gyAGAO3mB9klpSOk/zv4ezw3Z/U0FOeDsYeyaBWBGRtZEaVeUBuwUlu88hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuIMp3PeKRqOJdFkSsdO7C+gHLLphbYfZsNHSe4EAvKgIhAPYurEp85DJciVvtLMHjYakGcLn8BlKA3IBHkdIaC0IC"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"2.0.2":{"name":"byte-stream","version":"2.0.2","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"readable-stream":"~1.1.10"},"devDependencies":{"tape":"~1.1.0","through2":"~0.4.1"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"homepage":"https://github.com/maxogden/byte-stream","_id":"byte-stream@2.0.2","dist":{"shasum":"2ba9692f4c6a24d4f98ea602009b8126e8046989","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-2.0.2.tgz","integrity":"sha512-CJ2C42J6L2wKF9vxKGhqhNUWAX4bMNiuHpDvu3q1Kouu1alddhU0tP1f7OdDv2V7XAi1IJRXpSBba/ecnLuV9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2UVbokbS9A22BuQSbl6KOXeCqoXVamsPnnQ8X/2YFIAiEAi6y5PuuxRNe+3HmA+yYwKUf5W2Ppw3gD2ome70v8khQ="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}]},"2.0.3":{"name":"byte-stream","version":"2.0.3","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"debug":"^0.8.1","readable-stream":"~1.1.10"},"devDependencies":{"tape":"~1.1.0","through2":"~0.4.1"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"homepage":"https://github.com/maxogden/byte-stream","_id":"byte-stream@2.0.3","_shasum":"f42a8f571f7ebd34175273d542f74f5c28bf9181","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}],"dist":{"shasum":"f42a8f571f7ebd34175273d542f74f5c28bf9181","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-2.0.3.tgz","integrity":"sha512-iEnO9zwRyHVKYHP7iRxt3dI+NHeM1w7H2aJ/qhUfD92LNuLdGLeoxIgVLx1Aut+jx35Kq2jkkjY1iNBRNoJZJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT0/JWTOBijN7LknhwAG/d7VmuInRcbL03wsfWsu93JQIgdDQMe1kDQYq9a/bT8u3i7VRorkKds3kdReIzLmaIY9g="}]}},"2.1.0":{"name":"byte-stream","version":"2.1.0","description":"through stream that buffers streams into batches limited by a cumulative byte size limit","main":"index.js","scripts":{"test":"node test.js"},"dependencies":{"debug":"^1.0.4","readable-stream":"~1.1.10"},"devDependencies":{"tape":"~1.1.0","through2":"~0.4.1"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"gitHead":"6e39369fd81e12ac1afe1679e4114d48dd07aad2","homepage":"https://github.com/maxogden/byte-stream","_id":"byte-stream@2.1.0","_shasum":"32eecba6253821d69510b9cf34b315ce3e55b31a","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"32eecba6253821d69510b9cf34b315ce3e55b31a","tarball":"https://registry.npmjs.org/byte-stream/-/byte-stream-2.1.0.tgz","integrity":"sha512-akvDEd13LzGRu3OIoDyfgYT8GBM6CTImP3gLUZSVZQ27Epjy96yiMudZbc3axURCOn1s5QIVj2tTOtb4IBJ2FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4VCZPdkKjgjtfQfBrAo0eRwpszPv6seIj0jBM+ZxmEwIgNkqe7ZwH1nT8wmM1ME4ZezxvaeAzUBWfg67b0Cn8014="}]}}},"readme":"# byte-stream\n\nA stream that you write buffers or strings to, and it emits buffers at or bellow your byte limit.\n\n[![NPM](https://nodei.co/npm/byte-stream.png)](https://nodei.co/npm/byte-stream/)\n\n## usage\n\n```\nvar batcher = require('byte-stream')\n\n// batch until a byte limit\nvar batchedStream = batcher(limit);\n\n// or batch until a given time or byte limit\nvar batchedStream = batcher({time:1000, limit:limit})\n```\n\nReturns a stream. You can `.pipe` other streams to it or `.write` them yourself (if you `.write` don't forget to `.end`)\n\nFor more examples of usage see `test.js`\n\n\n### license\n\nBSD\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n  * Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n  * Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\nTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","maintainers":[{"name":"maxogden","email":"mogden@gmail.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-13T05:21:24.421Z","created":"2013-09-07T12:55:11.528Z","0.0.1":"2013-09-07T12:55:14.958Z","1.0.0":"2014-02-14T19:44:16.060Z","1.1.0":"2014-04-09T22:04:50.348Z","2.0.0":"2014-04-09T22:57:42.476Z","2.0.1":"2014-04-09T23:07:09.521Z","2.0.2":"2014-04-10T21:12:42.468Z","2.0.3":"2014-06-02T21:46:30.835Z","2.1.0":"2014-07-27T14:26:57.568Z"},"author":{"name":"max ogden"},"repository":{"type":"git","url":"git://github.com/maxogden/byte-stream.git"},"readmeFilename":"readme.md","homepage":"https://github.com/maxogden/byte-stream","bugs":{"url":"https://github.com/maxogden/byte-stream/issues"},"license":"BSD-2-Clause"}