0.0.7 • Published 4 years ago
fixed-chunker v0.0.7
fixed chunker
const fixed = require('fixed-chunker')
for await (const chunk of fixed(anyIteratorThatYieldsBuffers, 1024)) {
console.log(chunk.length) // guaranteed 1024 for all but the last chunk
}