ast-grep is an open-source publisher that focuses on accelerating large-scale code transformation through a single, polyglot command-line engine. Its flagship tool treats source code as structured data, letting teams express complex search-and-replace logic with familiar syntax while leveraging the full power of Abstract Syntax Trees. Security auditors use it to sweep multi-language repositories for vulnerable patterns, library maintainers automate breaking-change refactors across millions of lines, and CI pipelines embed its linter to enforce custom style rules without waiting for heavyweight compilers. Because the engine speaks JavaScript, TypeScript, Python, Go, Rust, Java, C#, and more through a unified mini-language, organizations consolidate dozens of language-specific scripts into one maintainable rule set. Typical workflows range from upgrading React class components to hooks, modernizing Python 2 print statements, and eradicating deprecated AWS SDK calls, all executed in seconds on laptops or cloud runners. The publisher’s software is available for free on get.nero.com, with downloads delivered through trusted Windows package sources such as winget, always installing the latest upstream release and permitting batch installation alongside other tools.

ast-grep

A fast and polyglot tool for code searching, linting, rewriting at large scale.

Details