Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/pull-randomly-split
https://github.com/jacobbubu/pull-randomly-split
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/pull-randomly-split
- Owner: jacobbubu
- License: mit
- Created: 2020-03-26T08:39:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T06:18:09.000Z (over 1 year ago)
- Last Synced: 2024-12-13T20:42:48.655Z (about 1 month 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
[![Build Status](https://travis-ci.org/jacobbubu/pull-randomly-split.svg)](https://travis-ci.org/jacobbubu/pull-randomly-split)
[![Coverage Status](https://coveralls.io/repos/github/jacobbubu/pull-randomly-split/badge.svg)](https://coveralls.io/github/jacobbubu/pull-randomly-split)
[![npm](https://img.shields.io/npm/v/@jacobbubu/pull-randomly-split.svg)](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