# facebook/jscodeshift

A JavaScript codemod toolkit.

Repository: https://github.com/facebook/jscodeshift
Canonical: https://ross.abutalabs.com/products/jscodeshift
Homepage: https://jscodeshift.com
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-11T06:18:05+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 28, longevity 100
- inputs: {"age_days": 4198, "days_push": 22, "days_rel": 527, "gap_med": 36.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10035, forks 498 (observed 2026-08-28T04:10:39.304508+00:00)

## What it is
jscodeshift is a toolkit for running codemods (automated code transformations) over multiple JavaScript or TypeScript files. It provides a CLI runner that applies transform scripts to files and wraps the recast AST-to-AST transform library while preserving original code style.

## Use cases
- run codemods across a large JavaScript or TypeScript codebase
- automate API migration refactoring
- bulk-update deprecated function calls in source files
- write AST-based code transformation scripts
- refactor code style-preserving at scale

## When to choose
- you need to apply a mechanical code change across many JS/TS files
- you want style-preserving AST transformations via recast
- you're migrating code after a library API change

## When to avoid
- you need simple text find-and-replace without AST awareness
- you're working in a non-JavaScript/TypeScript language
- you need one-off edits on a handful of files

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, developer-tools, cli, build-tool
- domain: developer-tools, web-development
- platform: cli, cross-platform
- tags: codemod, ast-transformation, recast, refactoring, javascript, typescript, automation, nodejs

## Member repositories
- facebook/jscodeshift (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.304508+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:54.945752+00:00, confidence not recorded.
  - readme: https://github.com/facebook/jscodeshift (fetched 2026-08-28T04:10:39.304508+00:00, sha c8f5c02afbb8)
  - homepage: https://jscodeshift.com (fetched 2026-08-29T08:19:57.157881+00:00, sha b3622f96af44)
  - registry_npm: https://registry.npmjs.org/jscodeshift (fetched 2026-08-29T08:19:57.160324+00:00, sha a0cedc09f50c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
