Compose use-* middlewares
Compose middlewares like (req, resp, next)=>Promise
into one.
Examples
const compose = ;const stack = //call the composed one;
API
compose(middlewares, options)
. options have:
beforeRunMiddleware
: before invoking the specified middleware, check whether it can be run
License
Licensed under MIT
Copyright (c) 2017 Tian Jian