Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfellner/koa-rx
RxJS middleware for koa
https://github.com/mfellner/koa-rx
koa middleware rxjs
Last synced: 3 days ago
JSON representation
RxJS middleware for koa
- Host: GitHub
- URL: https://github.com/mfellner/koa-rx
- Owner: mfellner
- License: mit
- Created: 2017-05-16T11:44:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T07:32:51.000Z (over 7 years ago)
- Last Synced: 2024-04-16T03:54:46.897Z (10 months ago)
- Topics: koa, middleware, rxjs
- Language: TypeScript
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# koa-rx [![Build Status](https://travis-ci.org/mfellner/koa-rx.svg?branch=master)](https://travis-ci.org/mfellner/koa-rx) [![codecov](https://codecov.io/gh/mfellner/koa-rx/branch/master/graph/badge.svg)](https://codecov.io/gh/mfellner/koa-rx)
RxJS middleware for koa. Return Observables in your middleware.
### Usage
```javascript
const Koa = require('koa')
const koaRx = require('koa-rx').defaultconst app = new Koa()
app.use(koaRx())
app.use(ctx => Observable.of(418).do(n => ctx.status = n))
```