drino-rx
v1.0.0
Published
Plugin to use RxJS in Drino
Downloads
4
Readme
Installation
npm install drino-rx
Usage
import drino from 'drino';
import drinoRx from 'drino-rx';
import { map } from 'rxjs';
drino.use(drinoRx);
drino.get('/my-api')
.toObservable()
.pipe(map(res => res.name))
.subscribe({
next: name => {
// handle value
}
});
License
MIT © Rémy Abitbol.