Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Repository files navigation

tscodeshift

GitHub licensenpmTravisCoverage StatusCommitizen friendlyStandard VersionGreenkeeper badge

tscodeshift is a toolkit for running codemods over multiple TS files. It borrows its ideas from jscodeshift in a shameless manner.

Usage

 Usage: tscodeshift <path>... [options]
path Files or directory or glob to transform
Options:
-t FILE, --transform FILE Path to the transform file. Can be either a local path or url [./transform.js]
-d, --dry Dry run (no changes are made to files)
-p, --print Print output, useful for development

Example

Convert mocha tests to jest tests:

$ npm install tscodeshift
$ ./node_modules/.bin/tscodeshift -t ./node_modules/tscodeshift/dist/src/transforms/mocha.js 'tests/**/*.ts'

About

tscodeshift is a toolkit for running codemods over multiple TS files

Topics

Resources

Stars

53 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages