Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
README.md | D | 24-Sep-2023 | 758 | 32 | 25 | |
package.json | D | 24-Sep-2023 | 461 | 19 | 18 | |
path.js | D | 24-Sep-2023 | 252 | 12 | 4 | |
runtime-module.js | D | 24-Sep-2023 | 1.1 KiB | 36 | 15 | |
runtime.js | D | 24-Sep-2023 | 23.6 KiB | 728 | 477 |
README.md
1# regenerator-runtime 2 3Standalone runtime for 4[Regenerator](https://github.com/facebook/regenerator)-compiled generator 5and `async` functions. 6 7To import the runtime as a module (recommended), either of the following 8import styles will work: 9```js 10// CommonJS 11const regeneratorRuntime = require("regenerator-runtime"); 12 13// ECMAScript 2015 14import regeneratorRuntime from "regenerator-runtime"; 15``` 16 17To ensure that `regeneratorRuntime` is defined globally, either of the 18following styles will work: 19```js 20// CommonJS 21require("regenerator-runtime/runtime"); 22 23// ECMAScript 2015 24import "regenerator-runtime/runtime"; 25``` 26 27To get the absolute file system path of `runtime.js`, evaluate the 28following expression: 29```js 30require("regenerator-runtime/path").path 31``` 32