# komposit

> For creating functional compositions

Latest version **0.1.1** (published 2015-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install komposit
pnpm add komposit
yarn add komposit
bun add komposit
```

## 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.1.1 |
| Published | 2015-06-02 |
| First published | 2015-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | krambuhl |
| Keywords | combintors, functional programming, functional combintators, fp |

## Links

- npm: https://www.npmjs.com/package/komposit
- Repository: git@github.com:krambuhl/komposit
- Homepage: https://github.com/krambuhl/komposit
- Issues: https://github.com/krambuhl/komposit/issues
- npm.io page: https://npm.io/package/komposit

## Recent versions

- 0.1.1 (latest) — 2015-06-02
- 0.1.0 — 2015-06-02

## README

# komposit

For creating functional compositions.

## komposit(functions...)

Creates a composite function out of supplied argument functions.  `komposite(f,g,h)(x)` is equivalent to `h(g(f(x)))`

```js
var add10 = function (n) { return n + 10; };
var divideBy2 = function (n) { return n / 2; };

divideBy2(add10(20)) // 15

var add10AndDivideBy2 = komposit(add10, divide2);

add10AndDivideBy2(20) // 15
```

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