awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
facebookarchive avatar

facebookarchive/codemodArchived

0
View on GitHub↗
4,133 星标·197 分支·Python·Apache-2.0·2 次浏览

Codemod

Codemod 是一套用于执行结构化源代码转换的软件工具。它作为一个自动化代码库迁移工具,利用抽象语法树操作而非简单的正则表达式,在多个文件之间执行大规模重构。

该项目通过一个提供彩色差异的交互式转换界面脱颖而出,允许用户手动审查、接受或修改每个匹配项。它还支持分布式重构工作流,能够将代码库分割成指定的任务块,以便在多个贡献者之间分配迁移任务。

该工具集涵盖了脚本化转换逻辑、模式匹配搜索引擎以及基于扩展的文件过滤功能,以将操作限制在项目的特定子集中。

Features

  • Automated Large-Scale Refactoring - Executes synchronized structural changes across an entire codebase using automated search and substitution.
  • AST-Based Source Transformations - Provides the ability to modify source code by replacing abstract syntax tree nodes while preserving formatting.
  • Automated Codebase Migration Tools - Provides a system for executing complex structural refactors with support for human oversight and task segmentation.
  • Interactive Change Reviewers - Provides an interactive interface for verifying and selectively accepting code modifications before writing them to the filesystem.
  • Automated Migration Codemods - Automates syntax updates and breaking change resolution across a project using scripted transformations.
  • Source Code Transformation Engines - Provides an engine for defining custom scripts to automate search and replace operations based on code patterns.
  • Structural Pattern Matching - Identifies specific code fragments using structural pattern matching based on AST bindings and regular expressions.
  • AST-Based Refactorers - Programmatically modifies internal syntax trees to apply fixes and refactors across large codebases.
  • Code Transformation Tools - Provides utilities for structural code modifications based on language grammars and AST manipulation.
  • Custom Refactoring Logic - Allows defining specialized source code transformations through custom imperative JavaScript logic.
  • Logical Pattern Substitution - Implements complex code changes that require logical scripts instead of basic regular expression replacements.
  • Scripted Transformations - Supports custom scripting for performing sophisticated refactoring logic beyond simple regular expression substitutions.
  • Interactive Code Editing - Offers an interactive editing experience with diff-style updates for guiding multi-step structural changes.
  • Refactoring Task Segmentation - Enables dividing a codebase into manageable chunks based on directory paths to distribute migration tasks.
  • Distributed Refactoring Workflows - Provides a workflow for dividing massive codebase cleanups among developers by segmenting files into assigned work blocks.

Star 历史

facebookarchive/codemod 的 Star 历史图表facebookarchive/codemod 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Codemod 的开源替代方案

相似的开源项目,按与 Codemod 的功能重合度排序。
  • reactjs/react-codemodreactjs 的头像

    reactjs/react-codemod

    4,403在 GitHub 上查看↗

    This project is a suite of abstract syntax tree transformation tools designed to automate the migration of source code to newer versions of React. It provides a set of scripts that programmatically modify code structures to replace deprecated APIs and component patterns with modern equivalents. The toolkit specializes in converting class components into functional components using arrow functions and prop destructuring. It also includes utilities for modernizing JSX syntax, updating deprecated lifecycle methods to stable versions, and migrating legacy string-based references to callback refs.

    JavaScript
    在 GitHub 上查看↗4,403
  • openrewrite/rewriteopenrewrite 的头像

    openrewrite/rewrite

    3,312在 GitHub 上查看↗

    OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework

    Javaabstract-syntax-treeastcode-search
    在 GitHub 上查看↗3,312
  • immunant/c2rustimmunant 的头像

    immunant/c2rust

    4,642在 GitHub 上查看↗

    c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and libraries into functionally equivalent unsafe Rust code. It operates as a pipeline that preserves original behavior and data structures, producing translated code that compiles as compatible shared libraries or Rust crates. The system includes an automated Rust refactoring framework that uses pattern-based AST rewriting to transform unsafe Rust into safe, idiomatic constructs. It utilizes an ownership inference engine to determine when raw pointers can be converted into safe reference

    Rustmemory-safetymigrationrust
    在 GitHub 上查看↗4,642
  • airbnb/ts-migrateairbnb 的头像

    airbnb/ts-migrate

    5,620在 GitHub 上查看↗

    ts-migrate is an automated migration tool designed to transform JavaScript source code into compiling TypeScript files. It functions as a code migration framework that uses abstract syntax trees to perform large-scale refactoring and structural changes across a project. The tool provides a customizable framework for defining plugin-based transformation rules, allowing for the automation of specific code changes. It includes specialized engines for converting JSDoc type definitions into native TypeScript annotations and a utility for suppressing compiler errors by inserting type assertions or

    TypeScriptcodemodjavascriptmigration
    在 GitHub 上查看↗5,620
查看 Codemod 的所有 30 个替代方案→

常见问题解答

facebookarchive/codemod 是做什么的?

Codemod 是一套用于执行结构化源代码转换的软件工具。它作为一个自动化代码库迁移工具,利用抽象语法树操作而非简单的正则表达式,在多个文件之间执行大规模重构。

facebookarchive/codemod 的主要功能有哪些?

facebookarchive/codemod 的主要功能包括:Automated Large-Scale Refactoring, AST-Based Source Transformations, Automated Codebase Migration Tools, Interactive Change Reviewers, Automated Migration Codemods, Source Code Transformation Engines, Structural Pattern Matching, AST-Based Refactorers。

facebookarchive/codemod 有哪些开源替代品?

facebookarchive/codemod 的开源替代品包括: reactjs/react-codemod — This project is a suite of abstract syntax tree transformation tools designed to automate the migration of source code… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… immunant/c2rust — c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and… airbnb/ts-migrate — ts-migrate is an automated migration tool designed to transform JavaScript source code into compiling TypeScript… rollup/plugins — This is a collection of official extensions for the Rollup bundling process. These plugins serve as module… comby-tools/comby — Comby is a command-line utility designed for structural code search and transformation across diverse programming…