A jscodeshift
tranformer for migrating generator function to async function
$ npm install --global generator2async-codemod
or
$ yarn global add generator2async-codemod
$ generator2async <path> [options]
path Files or directory to transform. Can be a glob like src/**.test.js
Options
--force, -f Bypass Git safety checks and forcibly run codemods
--dry, -d Dry run (no changes are made to files)