https://github.com/jacobbubu/pull-randomly-split
https://github.com/jacobbubu/pull-randomly-split
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/pull-randomly-split
- Owner: jacobbubu
- License: mit
- Created: 2020-03-26T08:39:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T06:18:09.000Z (about 2 years ago)
- Last Synced: 2025-02-13T10:19:36.025Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.13 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# @jacobbubu/pull-randomly-split
[](https://travis-ci.org/jacobbubu/pull-randomly-split)
[](https://coveralls.io/github/jacobbubu/pull-randomly-split)
[](https://www.npmjs.com/package/@jacobbubu/pull-randomly-split/)> Rewritten [pull-randomly-split](https://github.com/dominictarr/pull-randomly-split) in TypeScript
# pull-randomly-split
randomly split incoming buffers, to test that parsing works correctly.
``` ts
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