UNPKG

1.25 kBMarkdownView Raw
1
2# koa-compose
3
4[![NPM version][npm-image]][npm-url]
5[![Build status][travis-image]][travis-url]
6[![Test coverage][codecov-image]][codecov-url]
7[![Dependency Status][david-image]][david-url]
8[![License][license-image]][license-url]
9[![Downloads][downloads-image]][downloads-url]
10
11 Compose middleware.
12
13## Installation
14
15```js
16$ npm install koa-compose
17```
18
19## API
20
21### compose([a, [b, c,] ...])
22
23 Compose the given middleware and return middleware.
24
25## License
26
27 MIT
28
29[npm-image]: https://img.shields.io/npm/v/koa-compose.svg?style=flat-square
30[npm-url]: https://npmjs.org/package/koa-compose
31[travis-image]: https://img.shields.io/travis/koajs/compose/next.svg?style=flat-square
32[travis-url]: https://travis-ci.org/koajs/compose
33[codecov-image]: https://img.shields.io/codecov/c/github/koajs/compose/next.svg?style=flat-square
34[codecov-url]: https://codecov.io/github/koajs/compose
35[david-image]: http://img.shields.io/david/koajs/compose.svg?style=flat-square
36[david-url]: https://david-dm.org/koajs/compose
37[license-image]: http://img.shields.io/npm/l/koa-compose.svg?style=flat-square
38[license-url]: LICENSE
39[downloads-image]: http://img.shields.io/npm/dm/koa-compose.svg?style=flat-square
40[downloads-url]: https://npmjs.org/package/koa-compose