GitShow/facebook/jscodeshift
facebook

jscodeshift

A JavaScript codemod toolkit.

by facebook
Star on GitHubForkWebsitenpm

JavaScript

10.0k stars498 forks133 contributorsActive · 2w agoSince 2015v17.3.0MIT

Meet the team

See all 133 on GitHub →
fkling
fkling195 contributions
dependabot[bot]Bot
dependabot[bot]44 contributions
cpojer
cpojer32 contributions
Daniel15
Daniel1528 contributions
ElonVolo
ElonVolo21 contributions
trivikr
trivikr18 contributions
gkz
gkz14 contributions
jbrown215
jbrown2157 contributions

Languages

View on GitHub →
JavaScript96.9%
MDX2.9%
TypeScript0.2%

Commit activity

Last 12 weeks · 8 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
75
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
rootkiller6788
fix: handle gitignore negation patterns in ignoreFilesMergedPR

Fixes #342 Problem When an ignore config (e.g. passed via ) contains a gitignore negation pattern (a line starting with , such as or ), jscodeshift ends up ignoring every file. Root cause: in pushes the -prefixed pattern (and its expansion) directly into the picomatch matcher list. picomatch interprets a leading as a glob negation that inverts the whole match set, so returns for all paths. Fix Parse the leading in and route negation patterns to a separate list (with the stripped). first checks the ignore patterns, then only applies negation patterns to re-include paths that match them. A bare negation pattern now has no effect instead of ignoring all files. Verification Added regression tests in covering: bare negation pattern no longer ignores everything, negation re-includes files matched by a prior ignore pattern, and negation works with a leading traversal prefix. → 9/9 pass. Note: the wider run on Windows shows pre-existing failures in template/ts-decorator/core tests caused by CRLF line endings (unrelated to this change; none of those suites import ).

rootkiller6788 · 23h ago
klippx
Help: How do I get hold of Decorator nodes?ClosedIssue

How do I get a hold of the collection for and and decorator calls in this example? https://astexplorer.net/#/gist/96fa2a58a3c859d61278839d7b897f8f/acf963ec5bd8c96799d87bf4f8ccf6504c24c6d6 I have tried I want to find them and only them so I can remove those lines of code with . My config looks like this:

klippx · 1mo ago
Structured data for AI agents

Repository: facebook/jscodeshift. Description: A JavaScript codemod toolkit. Stars: 10034, Forks: 498. Primary language: JavaScript. Languages: JavaScript (96.9%), MDX (2.9%), TypeScript (0.2%). License: MIT. Homepage: https://jscodeshift.com Latest release: v17.3.0 (1y ago). Open PRs: 29, open issues: 122. Last activity: 2w ago. Community health: 75%. Top contributors: fkling, dependabot[bot], cpojer, Daniel15, ElonVolo, trivikr, gkz, jbrown215, marcodejongh, sharils and others.

·@ofershap

Replace github.com with gitshow.dev