# pull-awaitable

> Convert a pull-stream to an Async Iterable

Latest version **1.0.0** (published 2018-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install pull-awaitable
pnpm add pull-awaitable
yarn add pull-awaitable
bun add pull-awaitable
```

## 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.0.0 |
| Published | 2018-06-03 |
| First published | 2018-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | staltz.com |
| Maintainers | staltz |
| Keywords | pull-stream, async, async-iterable, for-await-of, async-await |

## Links

- npm: https://www.npmjs.com/package/pull-awaitable
- Repository: https://github.com/staltz/pull-awaitable
- Issues: https://github.com/staltz/pull-awaitable/issues
- npm.io page: https://npm.io/package/pull-awaitable

## Dependencies (1)

- [pull-thenable](https://npm.io/package/pull-thenable.md) ~1.0.0

## 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.0.0 (latest) — 2018-06-03

## README

# pull-awaitable

> Converts a pull-stream to an Async Iterable, usable with for-await-of

```bash
npm install --save pull-awaitable
```

**NOTE!** AsyncIterables and `for-await-of` are only supported in in Node.js v10, Firefox 57+, and Chrome 66.

## Usage

```js
const pull = require('pull-stream')
const awaitable = require('pull-awaitable')

async function main() {
  const stream = pull.values(['a', 'b']);
  for await (const x of awaitable(stream)) {
    console.log(x); // 'a'
                    // 'b'
  }
}

main()
```

## License
[MIT](https://tldrlegal.com/license/mit-license)

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