Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.