ast-grep ast-grep
ast babel codemod codereview command-line command-line-tool grep linter refactoring rust search static-analysis structural-search tree-sitter typescript
Use this command to install ast-grep:
winget install --id=ast-grep.ast-grep -e
A fast and polyglot tool for code searching, linting, rewriting at large scale.
ast-grep is a fast and polyglot tool designed for efficient code structural search, linting, and rewriting at scale. It enables developers to quickly locate, analyze, and modify code across thousands of files using syntax-aware patterns.
Key Features:
- Blazing Fast Performance: Leverage parallel processing powered by Rust to handle large-scale codebases efficiently.
- Polyglot Support: natively supports multiple programming languages with the ability to integrate custom tree-sitter parsers for additional language support.
- Node.js Binding: Offers a programmatic interface with type safety, allowing developers to interact with syntax trees using jQuery-like utility methods.
Audience & Benefit: Ideal for developers, code reviewers, and maintainers seeking efficient code analysis and modification across large projects. ast-grep empowers users to write clean, consistent code by supporting structural search, linting, and refactoring capabilities. It is particularly valuable for those involved in codemodding or static code analysis.
Installation via winget is available for便捷 access.
Versions
Website