# pull-balance

> Load Balancer for through pull streams.

Latest version **0.0.1** (published 2014-07-05) · 0 weekly downloads

## Install

```sh
npm install pull-balance
pnpm add pull-balance
yarn add pull-balance
bun add pull-balance
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-07-05 |
| First published | 2014-07-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.11 <=0.7.0 \|\| >=0.7.3 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ClickHere |
| Maintainers | tounano |
| Keywords | streams, pull-stream, load-balance |

## Links

- npm: https://www.npmjs.com/package/pull-balance
- Repository: https://github.com/tounano/pull-balance
- Homepage: https://github.com/tounano/pull-balance/
- Issues: https://github.com/tounano/pull-balance/issues
- npm.io page: https://npm.io/package/pull-balance

## Dependencies (3)

- [pull-robin](https://npm.io/package/pull-robin.md) latest
- [underscore](https://npm.io/package/underscore.md) latest
- [pull-stream](https://npm.io/package/pull-stream.md) latest

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-07-05

## README

# pull-balance

Load Balancer for through pull streams.

## Usage

### balance(streams)

`streams` can be an array of through streams or a list of streams separated by a comma.

## Example

```js
var pull = require("pull-stream");
var balance = require("pull-balance");

pull(
  pull.count(20),
  balance(
    pull.map(function (d) {return "through1: " + d}),
    pull.map(function (d) {return "through2: " + d}),
    pull.map(function (d) {return "through3: " + d})
  ),
  pull.log()
)
```

## install

With [npm](https://npmjs.org) do:

```
npm install pull-balance
```

## license

MIT

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