Skip to content

christyharagan/koa-rx-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-rx-router

Overview

Extends koa-router by exposing paths as rx observables

Usage

Install:

npm install koa-rx-router

Basic Usage:

import * as RxRouter from 'koa-rx-router'

let router = new RxRouter({
    prefix: '/mlListener'
})

let observable = router.post('/myPath').map(function(value){
  return value + ' Hello World'
})

observable.subscribe(function(value){
  console.log(value)
})

About

Expose koa-router middleware as rx observables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published