# rxjs-native

> When RxJS meets async/await

Latest version **1.1.0** (published 2021-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install rxjs-native
pnpm add rxjs-native
yarn add rxjs-native
bun add rxjs-native
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-10-30 |
| First published | 2021-10-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jay Park |
| Maintainers | jpark011 |
| Keywords | rxjs, async, await, javascript, typescript |

## Links

- npm: https://www.npmjs.com/package/rxjs-native
- Repository: https://github.com/jpark011/rxjs-native
- Homepage: https://github.com/jpark011/rxjs-native#readme
- Issues: https://github.com/jpark011/rxjs-native/issues
- npm.io page: https://npm.io/package/rxjs-native

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-10-30
- 1.0.1 — 2021-10-29
- 1.0.0 — 2021-10-28

## README

# RxJS Native

[![npm-version](https://img.shields.io/npm/v/rxjs-native?style=plastic)](https://www.npmjs.com/package/rxjs-native)

Use [RxJS](https://rxjs.dev/) in native JavaScript!

### Install

`rxjs-native` requires `rxjs@^7.0.0`

```bash
npm i --save rxjs rxjs-native
```

### Usage

Use it with [`for await`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) or as a plain [`async generator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)

```ts
import { eachValueFrom } from 'rxjs-native';
const list$ = from([1, 2, 3, 4, 5]);

for await (const value of eachValueFrom(list$)) {
  console.log(value);
}

console.log('done!');

// 1
// 2
// 3
// 4
// 5
// done!
```

### Caution

- This is an experimental project.
- NOT recommended to be used in production.
- If an observable does not complete, the generator never completes either (potential infinite loop & memory leak)

---
_Source: https://npm.io/package/rxjs-native · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
