Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 741 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 741 Bytes

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)