# parallel-iterable

> Traverse several iterables at the same time

Latest version **3.0.1** (published 2017-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install parallel-iterable
pnpm add parallel-iterable
yarn add parallel-iterable
bun add parallel-iterable
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2017-04-11 |
| First published | 2016-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hoàng Văn Khải |
| Maintainers | khai96_ |
| Keywords | parallel-iterable, parallel-iterator |

## Links

- npm: https://www.npmjs.com/package/parallel-iterable
- Repository: https://github.com/ksxnodemodules/parallel-iterable
- Homepage: https://github.com/ksxnodemodules/parallel-iterable#readme
- Issues: https://github.com/ksxnodemodules/parallel-iterable/issues
- npm.io page: https://npm.io/package/parallel-iterable

## Dependencies (2)

- [x-iterable-base](https://npm.io/package/x-iterable-base.md) ^4.0.0
- [x-iterable-utils](https://npm.io/package/x-iterable-utils.md) ^1.0.1

## Recent versions

- 3.0.1 (latest) — 2017-04-11
- 3.0.0 — 2017-04-07
- 2.0.0 — 2016-09-18
- 1.0.2 — 2016-06-07
- 1.0.1 — 2016-06-07
- 1.0.0 — 2016-05-07

## README

# deep-iterable

# Requirements

 * Node >= 6.0.0

# Features

 * Traverse several iterables at the same time

# Usage

## Import

```javascript
var ParallelIterable = require('parallel-iterable');
```

## Constructor

```javascript
new ParallelIterable(stop, ...iterables);
```

Where:

 * `stop` is a function which determines when to stop

 * `...iterables` are ECMAScript iterable objects

## Examples

```javascript
var iterables = [
    'abcdef',
    'ghi',
    'jklmnopqrs',
    'tuvwxyz'
];
var {END_OF_FIRST, END_OF_SOME, END_OF_ALL, FOR_COUNT} = ParallelIterable;
var eofirst = [...new ParallelIterable(END_OF_FIRST, ...iterables)];
var eosome = [...new ParallelIterable(END_OF_SOME, ...iterables)];
var eoall = [...new ParallelIterable(END_OF_ALL, ...iterables)];
var firstfive = [...new ParallelIterable(FOR_COUNT(5), ...iterables)];
console.log({eofirst, eosome, eoall});
```

---
_Source: https://npm.io/package/parallel-iterable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
