Skip to main content

ast-grep

ast-grep.github.io

ast-grep 是一个基于抽象语法树的代码搜索和重写工具,支持多种语言和平台,提供简单易用的搜索语法(类似CSS选择器)和多种使用方式(单次模式搜索/YAML规则搜索/API程序化搜索),适用于代码库升级和API迁移等场景。

Developer Tools & APIsOpen source#code-search#code-rewrite#ast
Visit website

ast-grep 是一个基于抽象语法树的代码搜索和重写的工具。卖点:使用简单,性能优秀。将搜索AST的难度降低到类似于写CSS选择器和写模版代码。特色:支持多种语言搜索,支持多平台,支持多种安装方法,支持多种使用方法(单次模式搜索/YAML规则搜索/API程序化搜索)。典型使用场景:需要大量重复机械修改的情况,例如升级库或 API 破坏性更改。## 搜索/重写image## YAML规则自定义Linterimage## 使用程序化API进行代码重写image官网: https://ast-grep.github.io/GitHub: https://github.com/ast-grep/ast-grep

More in Developer Tools & APIs

SolveHub

API for CAPTCHA and anti-bot tasks in authorized testing

Dev Tools ·

liarjs.dev

Scanner that cross-checks browser JavaScript fingerprint against network layer

Dev Tools ·

AntiBrow

Antidetect browser for managing multiple browser identities with real-device

Dev Tools ·

HostlessWP

Open source CLI to move WordPress to Cloudflare Workers

Dev Tools ·

deed.page

Permanent web hosting with an API for AI agents

Dev Tools ·

Rowflare

Open-source Airtable alternative running on your Cloudflare account

Dev Tools ·