https://github.com/shimohq/generator2async-codemod
https://github.com/shimohq/generator2async-codemod
async generator jscodeshift
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shimohq/generator2async-codemod
- Owner: shimohq
- License: mit
- Created: 2017-08-18T03:21:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T04:09:04.000Z (over 5 years ago)
- Last Synced: 2025-03-21T12:07:35.538Z (26 days ago)
- Topics: async, generator, jscodeshift
- Language: JavaScript
- Size: 47.9 KB
- Stars: 10
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-codemods - generator2async-codemod
README
# Migrating from generator function to async function
[](https://travis-ci.org/shimohq/generator2async-codemod) [](https://standardjs.com)A `jscodeshift` tranformer for migrating generator function to async function
## Usage
```
$ npm install --global generator2async-codemod
or
$ yarn global add generator2async-codemod$ generator2async [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)
```