koa-compose
Compose middleware.
Installation
$ npm install koa-compose
API
compose([a, [b, c,] ...])
Compose the given middleware and return middleware.
License
MIT
compose Koa middleware
any-promise
as a dependencyany-promise
so that the promise engine is configurableasync (ctx, next) => await next()
for koa@2
.
See https://github.com/koajs/compose/pull/27 for more information.fn._name
for debugging