1.0.0 • Published 4 years ago
@jacobbubu/pull-randomly-split v1.0.0
@jacobbubu/pull-randomly-split
Rewritten pull-randomly-split in TypeScript
pull-randomly-split
randomly split incoming buffers, to test that parsing works correctly.
import randomSplit from '@jacobbubu/pull-randomly-split'
pull(
pull.values(crypto.randomBytes(1024*1024)),
randomSplit(1024, 2096),
pull.collect(function () {
//...
})
)
Please see test-cases for the usage.
License
MIT
1.0.0
4 years ago