Skip to content

shimohq/generator2async-codemod

Repository files navigation

Migrating from generator function to async function

Travis JavaScript Style Guide

A jscodeshift tranformer for migrating generator function to async function

Usage

$ 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)

Releases

No releases published

Packages