Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 16, 2024 via pnpm

regenerator-runtime 0.14.1

Runtime for Regenerator-compiled generator and async functions.
Package summary
Share
0
issues
1
license
1
MIT
Package created
4 Jul 2014
Version published
15 Dec 2023
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
regenerator-runtime@0.14.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of regenerator-runtime 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does regenerator-runtime do?

Regenerator-runtime is a standalone runtime for Regenerator-compiled generator and asynchronous functions. It is a package immensely beneficial for JavaScript developers seeking to write code using modern, async functions or generators and need them to work seamlessly across all browsers.

How do you use regenerator-runtime?

Incorporating regenerator-runtime within your project is quite straightforward. You have two options for using it in your application depending on if you prefer ES2015 standard or CommonJS.

For CommonJS, you can import regenerator-runtime as a module using:

const regeneratorRuntime = require("regenerator-runtime");

And for ECMAScript 2015, you can import it as:

import regeneratorRuntime from "regenerator-runtime";

To make sure regeneratorRuntime is defined on a global scale, you have an option for both styles:

For CommonJS:

require("regenerator-runtime/runtime");

For ECMAScript 2015:

import "regenerator-runtime/runtime.js";

To extract the absolute file system path of runtime.js, you can evaluate the following expression:

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

Where are the regenerator-runtime docs?

Unfortunately, there isn't an explicitly dedicated documentation for regenerator-runtime. Nonetheless, you can find valuable information regarding its usage and function in the Regenerator's section on GitHub at https://github.com/facebook/regenerator. This page will allow you to understand more about regenerator-runtime, including its overall function and how to efficiently use it within your projects.