{"library":"babel-codemod","type":"library","category":null,"description":"babel-codemod version 2.1.2 (up to 2.1.5) rewrites JavaScript and TypeScript files using Babel plugins, leveraging recast to preserve original formatting with minimal changes. It supports local and remote plugins (e.g., AST Explorer URLs), with optional Prettier output. It includes built-in transpilation via @babel/preset-env and experimental TypeScript support via @babel/preset-typescript. Compared to alternatives like jscodeshift, it uses standard Babel plugins and APIs, reducing the learning curve for Babel users. Active until 2019, now in maintenance mode; requires Node >=6.","language":"javascript","status":"maintenance","version":"2.1.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-codemod","imports":["npx babel-codemod --plugin my-plugin src/","// Use any Babel plugin directly via --plugin flag"]},{"cmd":"yarn add babel-codemod","imports":[]},{"cmd":"pnpm add babel-codemod","imports":[]}],"homepage":null,"github":"https://github.com/square/babel-codemod","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-codemod","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-codemod/compatibility"}}