# uinix-fp-pipe

> uinix fp identity utility

Latest version **1.0.0** (published 2021-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install uinix-fp-pipe
pnpm add uinix-fp-pipe
yarn add uinix-fp-pipe
bun add uinix-fp-pipe
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-24 |
| First published | 2021-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Chris Zhou |
| Maintainers | chrisrzhou |
| Keywords | uinix, fp, utility, i |

## Links

- npm: https://www.npmjs.com/package/uinix-fp-pipe
- Repository: https://github.com/uinix-js/uinix-fp/tree/main/packages/uinix-fp-pipe
- Issues: https://github.com/uinix-js/uinix-fp/issues
- Funding: https://github.com/sponsors/uinix-js
- npm.io page: https://npm.io/package/uinix-fp-pipe

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-11-24

## README

# uinix-fp-pipe

[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][bundle-size-badge]][bundle-size]

[`uinix-fp`][uinix-fp] pipe utility.

---

## Install

This package is [ESM-only][] and requires Node 12+.

```sh
npm install uinix-fp-pipe
```

## Use

`pipe` allows chaining a sequence of functions in a pipeline.

```js
import {pipe} from 'uinix-fp-pipe';

const greet = x => 'hello ' + x;
const uppercase = x => x.toUpperCase();
const exclaim = x => x + '!';

const shout = pipe([
  greet,
  uppercase,
  exclaim
]); // curried

shout('Jesse'); // 'HELLO JESSE!'
```

## API

This package exports the following identifiers: `pipe`.  There is no default export.

### `pipe(fs)(x)`

###### Parameters (Curried)
- `fs` (`Function[]`) — An array of functions.
- `x` (`X`) — The input.

###### Returns
- `Y` — Output of transforming `X` through the series of functions.

## License

[MIT][license] © [Chris Zhou][author]

<!-- project -->
[author]: https://github.com/chrisrzhou
[license]: https://github.com/uinix-js/uinix-fp/blob/main/license
[build]: https://github.com/uinix-js/uinix-fp/actions
[build-badge]: https://github.com/uinix-js/uinix-fp/workflows/main/badge.svg
[coverage]: https://codecov.io/github/uinix-js/uinix-fp
[coverage-badge]: https://img.shields.io/codecov/c/github/uinix-js/uinix-fp.svg
[downloads]: https://www.npmjs.com/package/uinix-fp-pipe
[downloads-badge]: https://img.shields.io/npm/dm/uinix-fp-pipe.svg
[bundle-size]: https://bundlephobia.com/result?p=uinix-fp-pipe
[bundle-size-badge]: https://img.shields.io/bundlephobia/minzip/uinix-fp-pipe.svg

<!-- defs -->
[ESM-only]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
[uinix-fp]: https://github.com/uinix-js/uinix-fp

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