koa-compose

compose Koa middleware

npm install koa-compose
140 downloads in the last day
879 downloads in the last week
3 762 downloads in the last month

koa-compose Build Status

Compose middleware.

API

compose([a, b, c, ...])

Compose the given middleware and return middleware.

Debugging

To debug the interactions between middleware, you may use the DEBUG environment variable, for example:

$ DEBUG=koa-compose node --harmony app.js

When enabled this will output verbose response information and the middleware names to help visualize how they interact.

koa middleware debugging

License

MIT

npm loves you