elliottsj / jscodeshift-typescript-example

Example of using jscodeshift with TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jscodeshift-typescript-example

Example of using jscodeshift with TypeScript.

Usage

First install:

npm install

Try the reverse-identifiers transform:

./node_modules/.bin/jscodeshift -t ./reverse-identifiers.js --extensions=ts --parser=ts ./reverse-identifiers.input.ts --print --dry

Omit --dry to write the transformed source back to disk.

Test

npm test

About

Example of using jscodeshift with TypeScript

License:MIT License


Languages

Language:JavaScript 83.5%Language:TypeScript 16.5%