# metapipe

> a transform stream composed of transform streams

Latest version **2.0.3** (published 2020-01-07) · LGPL-3.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install metapipe
pnpm add metapipe
yarn add metapipe
bun add metapipe
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2020-01-07 |
| First published | 2017-05-30 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Emery Rose Hall |
| Maintainers | bookchin |
| Keywords | transform, stream, pipeline |

## Links

- npm: https://www.npmjs.com/package/metapipe
- Repository: https://gitlab.com/emrose/metapipe
- Homepage: https://gitlab.com/emrose/metapipe#readme
- Issues: https://gitlab.com/emrose/metapipe/issues
- npm.io page: https://npm.io/package/metapipe

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

- 2.0.3 (latest) — 2020-01-07
- 2.0.2 — 2018-08-08
- 2.0.1 — 2017-06-24
- 2.0.0 — 2017-05-30
- 1.0.0 — 2017-05-30

## README

MetaPipe
========

Transform stream composed of transform streams! And how!

Install
-------

Install using Node Package Manager.

```
npm install metapipe --save
```

Usage
-----

Create a pipeline, which is just a transform stream. Add additional tranform 
streams at any time!

```js
const MetaPipe = require('metapipe');
const pipeline = new MetaPipe({ objectMode: true });

// Default is a simple passthrough
pipeline.write({ foo: 'bar' });
pipeline.read(); // { foo: 'bar' }

// Add a transform to the end of the pipeline (can also `prepend`)
pipeline.append(new stream.Transform({
  transform: (data, enc, callback) => {
    data.bar = 'baz';
    callback(null, data);
  },
  objectMode: true
}));
pipeline.write({ foo: 'bar' });
pipeline.read(); // { foo: 'bar', bar: 'baz' }
```

License
-------

GNU LESSER GENERAL PUBLIC LICENSE 3.0

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