Middleware
The Modern (ES6) Middleware Composition.
Installation
$ npm install trek-middleware --save
Examples
const co = const Middleware = const middleware = middleware middleware middleware const ctx = arr: middleware
Benchmarks
$ npm run bench
Resoults from https://travis-ci.org/trekjs/middleware.
1024 middlewares
koa-compose x 777 ops/sec ±1.91% (75 runs sampled)
trek-middleware x 829 ops/sec ±2.95% (82 runs sampled)
Fastest is trek-middleware