# rxjs-iterable

> Create observables from iterables with backpressure support

Latest version **0.2.0** (published 2022-03-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-03-10 |
| First published | 2021-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim Smart |
| Maintainers | tim-smart |

## Links

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

## Recent versions

- 0.2.0 (latest) — 2022-03-10
- 0.1.3 — 2022-03-10
- 0.1.2 — 2022-03-10
- 0.1.1 — 2021-01-02
- 0.1.0 — 2021-01-02

## README

# rxjs-iterable

Create observables from iterables with backpressure support.

## Usage

```typescript
import * as Fs from "fs";
import * as RxOp from "rxjs/operators";
import * as RxI from "rxjs-iterable";

const CONCURRENCY = 2;

const [file$, push] = RxI.from<Buffer>(Fs.createReadStream(process.argv[2]), {
  // How many chunks of data do we want to initially consume?
  initialCount: CONCURRENCY,
});

file$
  .pipe(
    RxOp.map((b) => b.toString()),

    // Call push to indicate we are ready to consume more data
    RxOp.tap(push),
  )
  .subscribe(console.log);
```

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