# filter-pipe

> Pass a value through synchronous filter functions

Latest version **1.0.1** (published 2015-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install filter-pipe
pnpm add filter-pipe
yarn add filter-pipe
bun add filter-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 | 2015-09-19 |
| First published | 2015-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | value, filter, function |

## Links

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

## Dependencies (1)

- [to-array](https://npm.io/package/to-array.md) ~0.1.4

## Recent versions

- 1.0.1 (latest) — 2015-09-19
- 1.0.0 — 2015-09-17

## README

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

> Pass a value through synchronous filter functions


## Install

```
$ npm install --save filter-pipe
```

## Usage

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

var submitValid = pipe(isValid, submit)
submitValid({name: 'B'})
//=> submit not called

function isValid (value) {
  return value.name.length > 1
}

function submit (value) {
  sendToServer(value)
}

```

## API

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

##### functions

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

A set of functions to use to filter 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/filter-pipe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
