# asynciterable

> Async iterable class

Latest version **1.1.0** (published 2017-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install asynciterable
pnpm add asynciterable
yarn add asynciterable
bun add asynciterable
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-11-28 |
| First published | 2017-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andrea Parodi |
| Maintainers | parroit |

## Links

- npm: https://www.npmjs.com/package/asynciterable
- Repository: https://github.com/parro-it/asynciterable
- Homepage: https://github.com/parro-it/asynciterable#readme
- Issues: https://github.com/parro-it/asynciterable/issues
- npm.io page: https://npm.io/package/asynciterable

## Recent versions

- 1.1.0 (latest) — 2017-11-28
- 1.0.1 — 2017-11-17
- 1.0.0 — 2017-11-17
- 0.0.1 — 2017-11-17

## README

# asynciterable

[![Travis Build Status](https://img.shields.io/travis/parro-it/asynciterable/master.svg)](http://travis-ci.org/parro-it/asynciterable)
[![NPM downloads](https://img.shields.io/npm/dt/asynciterable.svg)](https://npmjs.org/package/asynciterable)

> Async iterable class

AsyncIterable is a class that implement the `async iterable` JavaScript pattern,
using a semantic similar to the promise one.

## Usage

Create an async iterable that emit three numbers:

```js
import AsyncIterable from 'asynciterable';

const numbers = new AsyncIterable((write, end, error) => {
  write(1);
  write(2);
  write(3);
  end();
});

for await (const n of numbers) {
  console.log(n)
}

// Output: 1\n2\n3\n
```

## API

## Install

With [npm](https://npmjs.org/) installed, run

```bash
npm install --save asynciterable
```

## See Also

* [`noffle/common-readme`](https://github.com/noffle/common-readme)

## License

MIT

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