Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/pull-many
https://github.com/jacobbubu/pull-many
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/pull-many
- Owner: jacobbubu
- License: mit
- Created: 2020-01-28T13:42:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T21:12:42.000Z (over 1 year ago)
- Last Synced: 2024-11-13T16:12:00.452Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.14 MB
- Stars: 0
- 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-many
[![Build Status](https://travis-ci.org/jacobbubu/pull-many.svg)](https://travis-ci.org/jacobbubu/pull-many)
[![Coverage Status](https://coveralls.io/repos/github/jacobbubu/pull-many/badge.svg)](https://coveralls.io/github/jacobbubu/pull-many)
[![npm](https://img.shields.io/npm/v/@jacobbubu/pull-many.svg)](https://www.npmjs.com/package/@jacobbubu/pull-many/)> Rewritten [pull-many](https://github.com/pull-stream/pull-many) in typescript for personal study.
## Usage
```ts
import * as pull from 'pull-stream'
import many from 'pull-many'pull(
many([pull.values([1, 2, 3]), pull.values([1, 3, 5]), pull.values([2, 4, 6])]),
pull.collect(function(err, ary) {
if (err) throw err
console.log(ary)
//=> [1, 1, 2, 2, 3, 4, 3, 5, 6]
})
)
```