https://github.com/remscodes/drino-rx
Plugin to use RxJS in Drino
https://github.com/remscodes/drino-rx
drino plugin
Last synced: about 1 year ago
JSON representation
Plugin to use RxJS in Drino
- Host: GitHub
- URL: https://github.com/remscodes/drino-rx
- Owner: remscodes
- License: mit
- Created: 2023-09-19T23:31:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T21:00:09.000Z (over 2 years ago)
- Last Synced: 2025-04-06T11:02:17.035Z (about 1 year ago)
- Topics: drino, plugin
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/drino-rx
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Drino Rx
Plugin to use RxJS in Drino
[](https://github.com/remscodes/drino-rx/actions/workflows/npm-ci.yml)
[](https://codecov.io/gh/remscodes/drino-rx)
[](https://www.npmjs.org/package/drino-rx)
[](https://bundlephobia.com/package/drino-rx)
[](LICENSE)
## Installation
```shell
npm install drino-rx
```
## Usage
```ts
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](LICENSE) © Rémy Abitbol.