{"schemaVersion":1,"id":"jscodeshift","name":"jscodeshift","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/jscodeshift/","officialUrl":"https://github.com/facebook/jscodeshift","isCatalog":false,"description":"An AST-based codemod toolkit: it reproducibly transforms many JavaScript and TypeScript files during API migrations.","tasks":["Automate an API migration through an AST codemod","Create an AST transform and apply it to a small file sample first"],"categoryIds":["infrastructure","quality"],"subcategoryIds":["infrastructure.developer","quality.review"],"tags":["jscodeshift","build","Development"],"aliases":["facebook/jscodeshift","jscodeshift","javascript-codemod-toolkit"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Automate an API migration through an AST codemod","chooseWhen":["Automate an API migration through an AST codemod","Create an AST transform and apply it to a small file sample first"],"considerInstead":[],"requirements":["For TypeScript, set the parser and file extensions; use dry-run to inspect without writing."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","--print alone is not a dry run: enable the no-write mode separately."],"faq":[{"question":"What can you use for free in jscodeshift?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with jscodeshift?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for jscodeshift?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with jscodeshift?","answer":"Define old and new call forms using several code examples. Create an AST transform and apply it to a small file sample first. Add the workflow to scripts or CI with a clear report."},{"question":"Is --print enough to prevent jscodeshift from changing files?","answer":"No: --print displays the result, while --dry (-d) prevents changes from being written. For TS/TSX, separately set the parser and --extensions: the default search targets js. First check a small sample's diff, then run the project's normal checks."}],"related":[],"sources":["https://github.com/facebook/jscodeshift","https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/README.md","https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/facebook/jscodeshift/main/README.md","https://raw.githubusercontent.com/facebook/jscodeshift/main/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Automate an API migration through an AST codemod.","inputs":["A repository, package manifests, and configuration.","A compatible runtime and the target build command."],"steps":["Define old and new call forms using several code examples.","Create an AST transform and apply it to a small file sample first.","Add the workflow to scripts or CI with a clear report."],"checks":["A clean copy of the project reproduces the result.","Errors produce a nonzero exit code and clear diagnostics."]},"sources":["https://github.com/facebook/jscodeshift","https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/README.md","https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/facebook/jscodeshift/main/README.md","https://raw.githubusercontent.com/facebook/jscodeshift/main/LICENSE"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Build / code quality tool","kind":"tool","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/facebook/jscodeshift","label":"Official source"},{"url":"https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://raw.githubusercontent.com/facebook/jscodeshift/main/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/facebook/jscodeshift/main/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}