https://github.com/unmanner/koa-some
Weird koa-some middleware
https://github.com/unmanner/koa-some
koa middleware some
Last synced: 4 months ago
JSON representation
Weird koa-some middleware
- Host: GitHub
- URL: https://github.com/unmanner/koa-some
- Owner: uNmAnNeR
- License: mit
- Created: 2019-02-20T10:00:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T17:13:31.000Z (over 2 years ago)
- Last Synced: 2025-03-18T03:35:53.218Z (4 months ago)
- Topics: koa, middleware, some
- Language: JavaScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# koa-some
[](https://travis-ci.org/uNmAnNeR/koa-some)
[](https://badge.fury.io/jas/koa-some)
[](https://opensource.org/licenses/MIT)Weird `some` middleware
**NOTE:** Implements shallow copying of koa `ctx.response` which is not supported out of the koa box and done 'as is'. Acceptable only for simple scenarios.
## Install
```js
npm install koa-some
```## Use
### some([a, b, c, ...])
Returns new middleware which select first one of passed.