# regenerator-runtime

> Runtime for Regenerator-compiled generator and async functions.

Latest version **0.14.1** (published 2023-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install regenerator-runtime
pnpm add regenerator-runtime
yarn add regenerator-runtime
bun add regenerator-runtime
```

## Health

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

Positive: has types package; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.14.1 |
| Published | 2023-12-15 |
| First published | 2016-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/regenerator-runtime) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 27.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3821 |
| Author | Ben Newman |
| Maintainers | benjamn |
| Keywords | regenerator, runtime, generator, async |

## Links

- npm: https://www.npmjs.com/package/regenerator-runtime
- Repository: https://github.com/facebook/regenerator.git#main
- Homepage: https://github.com/facebook/regenerator/tree/main#readme
- Issues: https://github.com/facebook/regenerator/issues
- npm.io page: https://npm.io/package/regenerator-runtime

## 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

- 0.14.1 (latest) — 2023-12-15
- 0.14.0 — 2023-08-04
- 0.13.11 — 2022-11-14
- 0.13.10 — 2022-10-13
- 0.13.9 — 2021-07-22
- 0.13.8 — 2021-03-24
- 0.13.7 — 2020-07-22
- 0.13.6 — 2020-07-21
- 0.13.5 — 2020-03-12
- 0.13.4 — 2020-02-23
- 0.13.3 — 2019-07-19
- 0.13.2 — 2019-03-07
- 0.13.1 — 2018-11-16
- 0.13.0 — 2018-11-16
- 0.12.1 — 2018-08-03
- … 16 more at https://npm.io/package/regenerator-runtime/versions

## README

# regenerator-runtime

Standalone runtime for
[Regenerator](https://github.com/facebook/regenerator)-compiled generator
and `async` functions.

To import the runtime as a module (recommended), either of the following
import styles will work:
```js
// CommonJS
const regeneratorRuntime = require("regenerator-runtime");

// ECMAScript 2015
import regeneratorRuntime from "regenerator-runtime";
```

To ensure that `regeneratorRuntime` is defined globally, either of the
following styles will work:
```js
// CommonJS
require("regenerator-runtime/runtime");

// ECMAScript 2015
import "regenerator-runtime/runtime.js";
```

To get the absolute file system path of `runtime.js`, evaluate the
following expression:
```js
require("regenerator-runtime/path").path
```

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