# pipe-through

> Pipe source Thorugh multiple processors

Latest version **1.0.1** (published 2018-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install pipe-through
pnpm add pipe-through
yarn add pipe-through
bun add pipe-through
```

## 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.1 |
| Published | 2018-07-14 |
| First published | 2016-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >4.0.0 |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | wacky6 |
| Maintainers | wacky6 |
| Keywords | pipe, filter |

## Links

- npm: https://www.npmjs.com/package/pipe-through
- Repository: https://github.com/wacky6/pipe-through
- Homepage: https://github.com/wacky6/pipe-through#readme
- Issues: https://github.com/wacky6/pipe-through/issues
- npm.io page: https://npm.io/package/pipe-through

## 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.1 (latest) — 2018-07-14
- 1.0.0 — 2016-01-18

## README

pipe-through
===
Synchronously Pipe source Through filters/processors

## Install
```
npm i pipe-through
```



## Usage
This helper is for complex transforms. Here is a silly string transform example:

```
const pipes = require('pipe-through')
pipes(' string ', [
    (s) => s.trim(),
    (s) => s.substring(1)
])   // => 'tring'
```


## API
### pipeThrough( source, procs, ctx )
##### source
Type: `any`  
Source object
##### procs
Type: `Array` of `(source, ctx)=>result`  
Array of filters/processors
##### ctx
Type: `any`, optional  
Context passed to filters  
Usually, an `object`



## LICENSE
MIT

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