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
}
mikeal/fixed-chunker
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Efficient fixed length chunker for any generator:wq
Resources
Stars
Watchers
Forks
Packages 0
No packages published