promise.compose2
compose an array of promises ,return a function that chain resolve promise with an initialization parameter
Install
$ npm install promise.compose2
Usage
var compose = { return { b = b || 0 return Promise }} var addOne = let composeFn=;
API
compose(functions)
-> function(ctx)
->`promise
like koa-compose 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]