# compose-fn

> A JavaScript library for writing composable functions.

Latest version **0.0.2** (published 2014-10-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install compose-fn
pnpm add compose-fn
yarn add compose-fn
bun add compose-fn
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-10-10 |
| First published | 2014-10-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tyler Rash |
| Maintainers | tylerrash |

## Links

- npm: https://www.npmjs.com/package/compose-fn
- Repository: http://github.com/tylerrash/compose-fn
- Homepage: https://github.com/tylerrash/compose-fn
- Issues: https://github.com/tylerrash/compose-fn/issues
- npm.io page: https://npm.io/package/compose-fn

## Recent versions

- 0.0.2 (latest) — 2014-10-10
- 0.0.1 — 2014-10-10

## README

# compose-fn

A JavaScript library for writing composable functions.

## Install

    npm install --save compose-fn

## Syntax

    compose(initialVal, fn_1[, fn_2, ..., fn_n);

`compose()` takes an `initialVal`, passing it to `fn_1()`. The result of which is passed to `fn_2()`, etc.

## Use

    var compose = require('compose-fn');

    function foo(a) { return a * 2; }
    function bar(b) { return b + 1; }
    function baz(c) { return c % 3; }

    var result = compose(2, foo, bar, baz);
    // => 2

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