degenerator
- Version 7.0.1
- Published
- 27.7 kB
- 3 dependencies
- MIT license
Install
npm i degeneratoryarn add degeneratorpnpm add degeneratorOverview
Compiles sync functions into async generator functions
Index
Functions
Type Aliases
Functions
function degenerator
degenerator: (code: string, _names: DegeneratorNames) => string;Compiles sync JavaScript code into JavaScript with async Functions.
Parameter code
JavaScript string to convert
Parameter names
Array of function names to add
awaitoperators to {String} Converted JavaScript string with async/await injected public
Type Aliases
type DegeneratorName
type DegeneratorName = string | RegExp;type DegeneratorNames
type DegeneratorNames = DegeneratorName[];Package Files (1)
Dependencies (3)
Dev Dependencies (6)
Peer Dependencies (1)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/degenerator.
- Markdown[](https://www.jsdocs.io/package/degenerator)
- HTML<a href="https://www.jsdocs.io/package/degenerator"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1183 ms. - Missing or incorrect documentation? Open an issue for this package.
