# pull-composed

> Take many pull stream pipelines and run them at once

Latest version **1.0.4** (published 2016-12-23) · MIT license · 0 weekly downloads

## Install

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

## 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 | 1.0.4 |
| Published | 2016-12-23 |
| First published | 2016-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | monz |
| Maintainers | m-onz |
| Keywords | compose, pull-streams |

## Links

- npm: https://www.npmjs.com/package/pull-composed
- Repository: https://github.com/m-onz/pull-composed
- Homepage: https://github.com/m-onz/pull-composed#readme
- Issues: https://github.com/m-onz/pull-composed/issues
- npm.io page: https://npm.io/package/pull-composed

## Dependencies (2)

- [m_flattened](https://npm.io/package/m_flattened.md) ^1.0.1
- [arguments-to-array](https://npm.io/package/arguments-to-array.md) ^1.0.0

## 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

- 1.0.4 (latest) — 2016-12-23
- 1.0.1 — 2016-12-22

## README

# pull-composed
Take many pull stream pipelines (source, though and sinks) and run them at once.

[![Build Status](https://travis-ci.org/m-onz/pull-composed.svg?branch=master)](https://travis-ci.org/m-onz/pull-composed)

Takes each argument and executes them if they happen to be a function, the 
 merged arguments are also returned.

# install
```
npm install pull-composed
```

# usage

```js

var compose = require('pull-composed')

var x = function () {
        return pull(
                pull.values([ 0, 1, 2, 3 ]),
                pull.drain()
        )
}

var y = function () {
        return pull(
                pull.values([ 4, 5, 6, 7 ]),
                pull.drain()
        )
}

var z = compose(
        x,
        x,
        y,
        y,
        x,
        x,
        y
)

compose(x, z, x, y, z, compose(x), compose(x), z)

var x = compose(
        x, y,
        x, y
)

```

# From a module

```js
var pull = require('pull-stream');
var compose = require('pull-composed');

module.exports = function app () {
	var x = function () {
		return pull(
			pull.values([ 'demo' ]),
			pull.log()
		)
	}
	return compose(x);
};

```

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