{"_id":"s-batch","_rev":"1-172db8a35f7ab696148ce40e3abde288","name":"s-batch","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"s-batch","version":"1.0.0","author":"","license":"MIT","_id":"s-batch@1.0.0","maintainers":[{"name":"trevorah","email":"andy@trevorah.net"}],"dist":{"shasum":"3e6dcf19c6c3d1af8f87a64ac87187b3f5158ba9","tarball":"https://registry.npmjs.org/s-batch/-/s-batch-1.0.0.tgz","fileCount":2,"integrity":"sha512-Xk4+7HAGMB3xYEYhZxgnTul30Dq5o6ntxSirDli3MrRXQtNbi3hTf8jZzUMTePpjUWbnnTor5Y20n1+iAHpNNQ==","signatures":[{"sig":"MEYCIQC74+ms5LxXXqfzhxRKkxggcT7dRhMNowMh/UjHfPL8ewIhAKqth5xAdMiHho1olt0jauEw+MLCCFk87ZlpRPHc5s0I","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":578},"main":"index.js","gitHead":"55071f422566e2a780b3e29a8b9e4731125f5845","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"trevorah","email":"andy@trevorah.net"},"_npmVersion":"11.0.0","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/s-batch_1.0.0_1737830647170_0.6129467680058598","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"s-batch","version":"1.0.1","description":"A transform stream that batches items into arrays","keywords":["web streams","streams","batch","TransformStream"],"homepage":"https://github.com/trevorah/s-batch#readme","bugs":{"url":"https://github.com/trevorah/s-batch/issues"},"repository":{"type":"git","url":"git+https://github.com/trevorah/s-batch.git"},"license":"MIT","author":{"name":"Andy Trevorah","email":"andy@trevorah.net"},"type":"module","main":"index.js","exports":{"types":"./index.d.ts","default":"./index.js"},"scripts":{"test":"node --test"},"_id":"s-batch@1.0.1","gitHead":"a735315a5224bb6ee8b93952cd39b42fd7cf0a0e","types":"./index.d.ts","_nodeVersion":"22.11.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-UUgN4akzwFEo99MqYKuARDf1gmhUmIgmQ7QYnN/8PIfJpb17l0wi8mfad2wPogp+P5tZ2K9Qjb1mfIV71ok5Dw==","shasum":"3dd14ea3efc83d7ab1737cde3da7b3948dc54d8d","tarball":"https://registry.npmjs.org/s-batch/-/s-batch-1.0.1.tgz","fileCount":5,"unpackedSize":2648,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGvH55VAQULPsfx6x8250K4ejGKCxYqSjzgK0u+YBUe7AiBsYh8avQEXAZjGl184qZIpF1tBzJjQLk4wnM0PohudZA=="}]},"_npmUser":{"name":"trevorah","email":"andy@trevorah.net"},"directories":{},"maintainers":[{"name":"trevorah","email":"andy@trevorah.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/s-batch_1.0.1_1738363708761_0.2120911855872767"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-25T18:44:07.169Z","modified":"2025-01-31T22:48:29.107Z","1.0.0":"2025-01-25T18:44:07.361Z","1.0.1":"2025-01-31T22:48:28.918Z"},"license":"MIT","maintainers":[{"name":"trevorah","email":"andy@trevorah.net"}],"readme":"# s-batch\n\nA transform stream that batches items into arrays.\n\n## Installation\n\n```bash\nnpm install s-batch\n```\n\n## Usage\n\n```js\nimport sBatch from \"s-batch\";\n\nconst batch = sBatch(3);\n\nconst result = await Array.fromAsync(\n  ReadableStream.from([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]).pipeThrough(batch)\n);\n\nconsole.log(result); // [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]\n```\n\n## API\n\n### `sBatch<T>(batchSize: number): TransformStream<T, T[]>`\n\nReturns a transform stream that batches items into arrays.\n","readmeFilename":"README.md","description":"A transform stream that batches items into arrays","homepage":"https://github.com/trevorah/s-batch#readme","keywords":["web streams","streams","batch","TransformStream"],"repository":{"type":"git","url":"git+https://github.com/trevorah/s-batch.git"},"author":{"name":"Andy Trevorah","email":"andy@trevorah.net"},"bugs":{"url":"https://github.com/trevorah/s-batch/issues"}}