reactions

0.0.13 • Public • Published

Reactions

Build Status

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

Reaction

  function (context, done)

and Done

  function (error, result)

For general purpose async helpers see caolan/async - An active project with good documentation

API:

jsdoc generated documentation

Reaction.fn & Reaction.make

Reactions.fn contains functions operating on Reaction functions and accepting initial context and done. For example

  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:

  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.

/reactions/

    Package Sidebar

    Install

    npm i reactions

    Weekly Downloads

    24

    Version

    0.0.13

    License

    MIT

    Last publish

    Collaborators

    • valeribogdanov