regenerator-runtime
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/regenerator-runtime package

0.14.1 • Public • Published

regenerator-runtime

Standalone runtime for Regenerator-compiled generator and async functions.

To import the runtime as a module (recommended), either of the following import styles will work:

// 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:

// 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:

require("regenerator-runtime/path").path

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.14.131,235,218latest
0.14.131,235,218next

Version History

VersionDownloads (Last 7 Days)Published
0.14.131,235,218
0.14.04,242,259
0.13.1114,036,065
0.13.10342,144
0.13.93,247,225
0.13.812,719
0.13.71,610,119
0.13.616,674
0.13.5726,135
0.13.464,100
0.13.3414,383
0.13.2126,471
0.13.17,285
0.13.033
0.12.1770,875
0.12.05,110
0.11.16,781,293
0.11.0127,229
0.10.51,736,324
0.10.4496
0.10.324,470
0.10.226
0.10.113,879
0.10.062
0.9.6117,142
0.9.53,069
0.9.426
0.9.329
0.9.221
0.9.130
0.9.025

Package Sidebar

Install

npm i regenerator-runtime

Weekly Downloads

62,011,880

Version

0.14.1

License

MIT

Unpacked Size

27.9 kB

Total Files

5

Last publish

Collaborators

  • benjamn