All Projects → KnisterPeter → tscodeshift

KnisterPeter / tscodeshift

Licence: MIT license
tscodeshift is a toolkit for running codemods over multiple TS files

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tscodeshift

async-await-codemod
Codemod script for migrating promise-based functions to use async/await syntax
Stars: ✭ 22 (-55.1%)
Mutual labels:  codemod
django-codemod
A tool to automatically fix Django deprecations.
Stars: ✭ 145 (+195.92%)
Mutual labels:  codemod
graphql2ts
Transform .graphql to graphql-js typescript
Stars: ✭ 41 (-16.33%)
Mutual labels:  codemod
taro2-to-3
让 Taro2 项目自动升级到 Taro3 项目⚒️。
Stars: ✭ 31 (-36.73%)
Mutual labels:  codemod
ember-angle-brackets-codemod
Codemod to convert curly braces syntax to angle brackets syntax
Stars: ✭ 58 (+18.37%)
Mutual labels:  codemod
babel-plugin-hyperscript-to-jsx
This plugin transforms react-hyperscript into JSX. Intended to be used as codemod.
Stars: ✭ 20 (-59.18%)
Mutual labels:  codemod
tiny-treeshaker
🌳🥤 A tiny codemod for tree shaking (experimental) 🌳🥤
Stars: ✭ 92 (+87.76%)
Mutual labels:  codemod
ember-data-codemod
A codemod to upgrade to new ember-data packages
Stars: ✭ 13 (-73.47%)
Mutual labels:  codemod
asteroid
A set of utilities to create Groovy AST transformations
Stars: ✭ 29 (-40.82%)
Mutual labels:  ast-transformations
tacoscript
🌮 The bidirectional alt-JS language
Stars: ✭ 46 (-6.12%)
Mutual labels:  ast-transformations
Ts Migrate
A tool to help migrate JavaScript code quickly and conveniently to TypeScript
Stars: ✭ 4,246 (+8565.31%)
Mutual labels:  codemod
codemod-v4
codemod cli for antd v4 upgrade
Stars: ✭ 84 (+71.43%)
Mutual labels:  codemod
font-awesome-codemod
⚙️ Font Awesome codemod script
Stars: ✭ 46 (-6.12%)
Mutual labels:  codemod
awesome-codemods
Awesome list of codemods for various languages, libraries and frameworks
Stars: ✭ 98 (+100%)
Mutual labels:  codemod
rn-update-deprecated-modules
Codemod to update import declarations as per react-native > 0.59.x deprecations.
Stars: ✭ 73 (+48.98%)
Mutual labels:  codemod
moment-dayjs-codemod
A Codemod to migrate from moment.js to day.js
Stars: ✭ 20 (-59.18%)
Mutual labels:  codemod
jscodeshift-typescript-example
jscodeshift typescript codemod example
Stars: ✭ 27 (-44.9%)
Mutual labels:  codemod
babel-codemod-example
An example of how to use babel as a codemod
Stars: ✭ 24 (-51.02%)
Mutual labels:  codemod
preact-codemod
🍧 Shave some bytes by using Preact.
Stars: ✭ 39 (-20.41%)
Mutual labels:  codemod
es5-function-to-class-codemod
📦 Transform ES5 Functions to ES6 Classes
Stars: ✭ 30 (-38.78%)
Mutual labels:  codemod

tscodeshift

GitHub license npm Travis Coverage Status Commitizen friendly Standard Version Greenkeeper 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'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].