# streams-to-async-iterator

> A simple stream to async iterator

Latest version **0.4.0** (published 2018-08-16) · 0 weekly downloads

## Install

```sh
npm install streams-to-async-iterator
pnpm add streams-to-async-iterator
yarn add streams-to-async-iterator
bun add streams-to-async-iterator
```

## 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.4.0 |
| Published | 2018-08-16 |
| First published | 2018-08-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | laggingreflex |

## Links

- npm: https://www.npmjs.com/package/streams-to-async-iterator
- Repository: https://github.com/laggingreflex/streams-to-async-iterator
- Homepage: https://github.com/laggingreflex/streams-to-async-iterator#readme
- Issues: https://github.com/laggingreflex/streams-to-async-iterator/issues
- npm.io page: https://npm.io/package/streams-to-async-iterator

## Recent versions

- 0.4.0 (latest) — 2018-08-16
- 0.3.0 — 2018-08-13
- 0.2.0 — 2018-08-08
- 0.1.0 — 2018-08-08

## README

# streams-to-async-iterator

A simple stream to async iterator

## Install

```
npm i streams-to-async-iterator
```

## Usage

```js
import toAsync from 'streams-to-async-iterator';

const stream = fs.createReadStream(filename);
const asyncStream = toAsync(stream);

for await (const chunk of asyncStream) {
  // ...
}
```

### API

**`toAsync(stream)`**

* **`stream`** Readable stream

## Alternatives:

* **[stream-to-async-iterator]**

[stream-to-async-iterator]: https://github.com/basicdays/node-stream-to-async-iterator

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