# tscodeshift

> tscodeshift is a toolkit for running codemods over multiple TS files

Latest version **0.4.1** (published 2017-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install tscodeshift
pnpm add tscodeshift
yarn add tscodeshift
bun add tscodeshift
```

Provides the command `tscodeshift`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2017-10-05 |
| First published | 2017-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 53 |
| Author | Markus Wolf |
| Maintainers | knisterpeter |

## Links

- npm: https://www.npmjs.com/package/tscodeshift
- Repository: https://github.com/KnisterPeter/tscodeshift
- Homepage: https://github.com/KnisterPeter/tscodeshift#readme
- Issues: https://github.com/KnisterPeter/tscodeshift/issues
- npm.io page: https://npm.io/package/tscodeshift

## Dependencies (4)

- [meow](https://npm.io/package/meow.md) ^3.7.0
- [globby](https://npm.io/package/globby.md) ^6.1.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^4.0.2
- [ts-emitter](https://npm.io/package/ts-emitter.md) ^0.3.1

## Recent versions

- 0.4.1 (latest) — 2017-10-05
- 0.4.0 — 2017-05-31
- 0.3.0 — 2017-05-31
- 0.2.0 — 2017-05-30
- 0.1.0 — 2017-05-30

## README

# tscodeshift

[![GitHub license][license-image]][license-link]
[![npm][npm-image]][npm-link]
[![Travis][ci-image]][ci-link]
[![Coverage Status][coverage-image]][coverage-link]
[![Commitizen friendly][commitizen-image]][commitizen-link]
[![Standard Version][standard-version-image]][standard-version-link]
[![Greenkeeper badge](https://badges.greenkeeper.io/KnisterPeter/tscodeshift.svg)](https://greenkeeper.io/)

tscodeshift is a toolkit for running codemods over multiple TS files.
It borrows its ideas from [jscodeshift](https://github.com/facebook/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:

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

[license-image]: https://img.shields.io/github/license/KnisterPeter/tscodeshift.svg
[license-link]: https://github.com/KnisterPeter/tscodeshift
[npm-image]: https://img.shields.io/npm/v/tscodeshift.svg
[npm-link]: https://www.npmjs.com/package/tscodeshift
[ci-image]: https://img.shields.io/travis/KnisterPeter/tscodeshift.svg
[ci-link]: https://travis-ci.org/KnisterPeter/tscodeshift
[coverage-image]: https://coveralls.io/repos/github/KnisterPeter/tscodeshift/badge.svg?branch=master
[coverage-link]: https://coveralls.io/github/KnisterPeter/tscodeshift?branch=master
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-link]: http://commitizen.github.io/cz-cli/
[standard-version-image]: https://img.shields.io/badge/release-standard%20version-brightgreen.svg
[standard-version-link]: https://github.com/conventional-changelog/standard-version

---
_Source: https://npm.io/package/tscodeshift · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
