Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unmanner/koa-some
Weird koa-some middleware
https://github.com/unmanner/koa-some
koa middleware some
Last synced: 11 days 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T17:13:31.000Z (about 2 years ago)
- Last Synced: 2025-01-23T06:34:40.440Z (13 days 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
[![Build Status](https://travis-ci.org/uNmAnNeR/koa-some.svg?branch=master)](https://travis-ci.org/uNmAnNeR/koa-some)
[![npm version](https://badge.fury.io/js/koa-some.svg)](https://badge.fury.io/jas/koa-some)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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.