# reactions

> A library of methods for creating function (context, next), where next is a function (error, result)

Latest version **0.0.13** (published 2014-03-12) · MIT license · 0 weekly downloads

## Install

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

## 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.13 |
| Published | 2014-03-12 |
| First published | 2013-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Boris Filipov, Valeri Bogdanov |
| Maintainers | valeribogdanov |

## Links

- npm: https://www.npmjs.com/package/reactions
- Repository: https://github.com/vbogdanov/reactions
- Issues: https://github.com/vbogdanov/reactions/issues
- npm.io page: https://npm.io/package/reactions

## Recent versions

- 0.0.13 (latest) — 2014-03-12
- 0.0.12 — 2014-03-12
- 0.0.11 — 2014-01-28
- 0.0.9 — 2013-12-16
- 0.0.8 — 2013-11-19
- 0.0.7 — 2013-11-14
- 0.0.6 — 2013-11-08
- 0.0.5 — 2013-11-07
- 0.0.4 — 2013-11-07
- 0.0.3 — 2013-11-07
- 0.0.2 — 2013-11-07

## README

Reactions
=========
[![Build Status](https://travis-ci.org/vbogdanov/reactions.png)](https://travis-ci.org/vbogdanov/reactions)

Reactions is a javascript (node and browser) library based around the 

Reaction 
```javascript
  function (context, done)
``` 
and Done 
```javascript
  function (error, result)
``` 

For general purpose async helpers see [caolan/async](https://github.com/caolan/async Async) - An active project with good documentation

API:
------------------
[jsdoc generated documentation](http://htmlpreview.github.io/?http://raw.github.com/vbogdanov/reactions/master/out/index.html)

Reaction.fn & Reaction.make
---------------------------
`Reactions.fn` contains functions operating on Reaction functions and accepting initial context and done. For example
```javascript
  Reactions.fn.parallel(arrayOfReactions, context, done);
```
while `Reactions.make` provide functions doing partial execution of the Reactions.fn ones. 
The result of the partial execution matches the Reaction function signature:
```javascript
  var compositeReaction = Reactions.make.parallel(arrayOfReactions)
  compositeReaction(context, done);
```
Note: `Reactions.make` is automatically generated from `Reactions.fn` with the expectation 
that the last two arguments of all functions are context and done.

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