regenerator-runtime
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

regenerator-runtime

Runtime for Regenerator-compiled generator and async functions.

0.13.3  •  Updated 8 months ago  •  by Ben Newman  •  MIT License

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";

To get the absolute file system path of runtime.js, evaluate the following expression:

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

Popularity

Weekly Downloads
19.2M

Maintenance

Development

Last ver 8 months ago
Created 6 years ago
Last commit 1 second ago
1 second between commits

Technology

Node version: 8.16.0
26.6K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

0 contributors

Dependencies

Tags

regenerator
runtime
generator
async
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.