# value-pipe

> Pipe a value through a list of sync transform functions

Latest version **1.0.1** (published 2017-12-19) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2017-12-19 |
| First published | 2015-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | functional, pipe, pipeline, series, waterfall |

## Links

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

## 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) — 2017-12-19
- 1.0.0 — 2015-08-01

## README

# value-pipe [![Build Status](https://travis-ci.org/bendrucker/value-pipe.svg?branch=master)](https://travis-ci.org/bendrucker/value-pipe)

> Pipe a value through a list of synchronous transform functions


## Install

```
$ npm install --save value-pipe
```


## Usage

```js
var pipe = require('value-pipe')

var mirrorAndUppercase = pipe(mirror, uppercase)
mirrorAndUppercase('git')
//=> GITTIG

function mirror (value) {
  return value + value.split('').reverse().join('')
}

function uppercase (value) {
  return value.toUpperCase()
}

```

## API

#### `pipe(functions...)` -> `function`

##### functions

*Required*  
Type: `function` / `array[function]`

A set of functions to use to transform the value. At least one is required. You can pass the functions as arguments or pass a single array of functions.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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