# rollup-plugin-async

> Transforms Async functions to generator functions before bundling.

Latest version **1.2.0** (published 2016-11-20) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-async
pnpm add rollup-plugin-async
yarn add rollup-plugin-async
bun add rollup-plugin-async
```

## 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.2.0 |
| Published | 2016-11-20 |
| First published | 2016-08-11 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 40 |
| Author | Lee Byron |
| Maintainers | leebyron |
| Keywords | rollup-plugin, async, await, async-to-gen |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-async
- Repository: https://github.com/leebyron/rollup-plugin-async
- Issues: https://github.com/leebyron/rollup-plugin-async/issues
- npm.io page: https://npm.io/package/rollup-plugin-async

## Dependencies (2)

- [async-to-gen](https://npm.io/package/async-to-gen.md) ^1.2.0
- [rollup-pluginutils](https://npm.io/package/rollup-pluginutils.md) ^1.5.1

## 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.2.0 (latest) — 2016-11-20
- 1.1.0 — 2016-09-09
- 1.0.1 — 2016-08-11

## README

Rollup Async functions plugin
=============================

[![Build Status](https://travis-ci.org/leebyron/rollup-plugin-async.svg?branch=master)](https://travis-ci.org/leebyron/rollup-plugin-async)

This [Rollup](http://rollupjs.org/) plugin will replace [async functions](https://tc39.github.io/ecmascript-asyncawait/) with generator functions that can run in
modern browsers or in most versions of node.js during bundling using [`async-to-gen`](https://github.com/leebyron/async-to-gen).

## Install

```
npm install --save rollup-plugin-async
```

```js
var rollup = require('rollup').rollup;
var async = require('rollup-plugin-async');

rollup({
  entry: 'main.js',
  plugins: [ async() ]
}).then(...);
```

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