Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

jscodeshift review

Free#5 of 22 in Code Refactoring Tools

A focused, free toolkit for batch refactoring JavaScript and TypeScript code.

8.3/10Editor score
jscodeshift8.3 Visit jscodeshift

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

jscodeshift is an open-source toolkit for building and running codemods across JavaScript and TypeScript files. Its command-line runner applies transforms to files or directories, while its JavaScript API supports programmatic execution. The toolkit is aimed at developers handling structural code changes, migrations, API updates, and automated refactoring across a project. It is a focused choice for teams that need AST-based batch transformations rather than a general-purpose refactoring environment.

Its main strength is the depth of its codemod workflow. jscodeshift wraps recast with AST traversal, collection methods, parser selection, and source generation. Babel, Babylon, Flow, TypeScript, and TSX parser options cover the supported JavaScript-family workflows. Parallel processing with a configurable worker count can distribute work across files, while dry runs provide transformation statistics before changes are applied. Gitignore, ignore-pattern, and ignore-config support help control the files included in a run, and utilities for unit tests and fixtures support transform validation.

The trade-off is focus. jscodeshift is distributed as an npm package and is used through its command-line runner or JavaScript API, so it suits developers who can define and maintain code transformations. Its verified language scope is JavaScript, TypeScript, and Flow, making it less suitable for repositories centered on other languages. The project is open-source software with a free plan and no paid tiers or AI functionality. Choose jscodeshift for programmable, project-wide codemods in its supported languages; choose an alternative when you need broader language coverage, a hosted service, or an AI-driven workflow.

jscodeshift pros and cons

  • Where it wins
    • AST-based transforms support structural, large-scale code changes
    • Parser options include Babel, Flow, TypeScript, and TSX
    • Dry runs, parallel workers, and testing utilities support safer refactors
  • Where it doesn't
    • Scope is limited to JavaScript, TypeScript, and Flow
    • Requires developer-authored transforms and command-line workflows
    • It is not a hosted commercial service or AI refactoring tool

jscodeshift fact sheet, pricing and score →

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update