unchain [![npm][npm-image]][npm-url]
Synchronous function chaining with delay support.
Install
$ npm install --save unchain
Usage
var chain = { console } { console } { console } // chain sync functions//=> foo bar // pass arrays of functions//=> foo bar // delay some functions//=> foo bar (100ms later) baz (200ms later)
chain(fn1|delay, [fn2|delay], [fn3|delay, ...])
Chains functions from left to right. If a number
is specified, the next function in the chain
will be delayed in ms
.
License
MIT © Nicolas Gryman