auto-yield
Automatically add yield to generator calls.
Installation
$ npm install auto-yield
Usage
var autoYield = var code = `function* main() {yield move();} function* move() {yield 'moving';}`
API
autoYield(code, globalGens, secondOrderGens)
code
- code to transformglobalGens
- array of global names or object names that are generators or have generatorssecondOrderGens
- array of functions that return generators
Returns: transformed code
License
MIT