promise-waterfall2
Runs an array of promises in series, each passing their results to the next promise in the array. support an initialization parameter
Install
$ npm install promise.waterfall2
Usage
var promiseWaterfall = { return { b = b || 0 return Promise }} var addOne = // with initialization parameter
API
promiseWaterfall(functions,[initialArgs])
-> promise
Runs the array of functions in series, waiting for each to resolve and passing each result to the next function in the array.
functions
Required
Type: array[function]