Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shimohq/generator2async-codemod
https://github.com/shimohq/generator2async-codemod
async generator jscodeshift
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shimohq/generator2async-codemod
- Owner: shimohq
- License: mit
- Created: 2017-08-18T03:21:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T04:09:04.000Z (about 5 years ago)
- Last Synced: 2024-11-02T20:31:58.220Z (6 days ago)
- Topics: async, generator, jscodeshift
- Language: JavaScript
- Size: 47.9 KB
- Stars: 10
- Watchers: 7
- 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
[![Travis](https://img.shields.io/travis/shimohq/generator2async-codemod.svg)](https://travis-ci.org/shimohq/generator2async-codemod) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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)
```