An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


Drino Rx


Plugin to use RxJS in Drino


[![github ci](https://img.shields.io/github/actions/workflow/status/remscodes/drino-rx/npm-ci.yml.svg?&logo=github&label=CI&style=for-the-badge)](https://github.com/remscodes/drino-rx/actions/workflows/npm-ci.yml)
[![codecov coverage](https://img.shields.io/codecov/c/github/remscodes/drino-rx/main.svg?style=for-the-badge&logo=codecov)](https://codecov.io/gh/remscodes/drino-rx)
[![npm version](https://img.shields.io/npm/v/drino-rx.svg?&style=for-the-badge&logo=npm)](https://www.npmjs.org/package/drino-rx)
[![bundle size](https://img.shields.io/bundlephobia/minzip/drino-rx.svg?style=for-the-badge)](https://bundlephobia.com/package/drino-rx)
[![license](https://img.shields.io/github/license/remscodes/drino-rx.svg?style=for-the-badge)](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.