/koa-some

Weird koa-some middleware

Primary LanguageJavaScriptMIT LicenseMIT

koa-some

Build Status npm version License: 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

npm install koa-some

Use

some([a, b, c, ...])

Returns new middleware which select first one of passed.