catchy
Promise-like async parallel control flow library, without so much abstraction.
Install
Install with npm
$ npm install catchy
API
catchy(fns(value[, [resolve[, reject]]), end(err, res))
fns
{Array} with async/sync functionsvalue
{Anything} that are from previous function's.resolve
resolve
{Function} that send some value to next function.resolve('value for next fn')
reject
{Function} that throw some error to end.reject(new Error('some err'))
end
{Function} function that will be called whenerror
(rejected), or complete successfulerr
can be intanceof Error or message provided from.reject
Usage
Some example, also see example.js. Try to fail it to see behaving. :)
var catchy = var first = 'str';
Tests
As usual -
npm test
or if you have mocha globally -mocha
.
$ npm test
Authors & Contributors
Charlike Mike Reagent
License
Copyright (c) 2014 Charlike Mike Reagent, contributors.
Released under the MIT
license.