Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koajs/compose
Middleware composition utility
https://github.com/koajs/compose
Last synced: 27 days ago
JSON representation
Middleware composition utility
- Host: GitHub
- URL: https://github.com/koajs/compose
- Owner: koajs
- License: mit
- Created: 2013-08-13T04:04:43.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-07-03T18:48:58.000Z (over 1 year ago)
- Last Synced: 2024-04-14T04:06:44.175Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 314 KB
- Stars: 994
- Watchers: 15
- Forks: 143
- Open Issues: 16
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
- awesome-koa - compose - Middleware composition utility (Middleware)
- awesome-koa - koa-compose - 组合多个中间件为一个。![](https://img.shields.io/github/stars/koajs/compose.svg?style=social&label=Star) ![](https://img.shields.io/npm/dm/koa-compose.svg?style=flat-square) (仓库 / 中间件)
README
# koa-compose
[![NPM version][npm-image]][npm-url]
[![Node.js CI](https://github.com/koajs/compose/actions/workflows/node.js.yml/badge.svg?branch=master&event=push)](https://github.com/koajs/compose/actions/workflows/node.js.yml)
[![Test coverage][codecov-image]][codecov-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]Compose middleware specifically for Koa.
## Installation
```js
$ npm install koa-compose
```## Maintainers
- Lead: @jonathanong [@jongleberry](https://twitter.com/jongleberry)
## API
### fn = compose([a, b, c, ...])
Compose the given middleware and return middleware.
## License
MIT
[npm-image]: https://img.shields.io/npm/v/koa-compose.svg?style=flat-square
[npm-url]: https://npmjs.org/package/koa-compose
[codecov-image]: https://img.shields.io/codecov/c/github/koajs/compose/next.svg?style=flat-square
[codecov-url]: https://codecov.io/github/koajs/compose
[david-image]: http://img.shields.io/david/koajs/compose.svg?style=flat-square
[david-url]: https://david-dm.org/koajs/compose
[license-image]: http://img.shields.io/npm/l/koa-compose.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/koa-compose.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/koa-compose