ast-grep

ast-grep

⚡A polyglot tool for code searching, linting, rewriting!

5.0
1 review

23 followers

ast-grep(sg) is a fast and polyglot tool for code searching, linting, and rewriting at large scale. Think it as a hybrid of grep, eslint, and codemod. But for all programming languages with super fast running speed!
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
ast-grep gallery image
Free
Launch Team
PinMe
PinMe
Publish Sites in Seconds. Tamper-proof by design.
Promoted

What do you think? …

Herrington Darkholme
Hi everyone, I’m the maker of ast-grep, a polyglot tool for code searching, linting, and rewriting at large scale. ast-grep is fast and easy to use. You can write patterns as if you are writing ordinary code, and use them to search, lint, or rewrite code across thousands of files. You can also use YAML configuration to write custom rules for your own needs. ast-grep supports multiple languages and has a beautiful command line interface. It is written in Rust and powered by tree-sitter. ast-grep also has a fancy playground where you can try out the tool and write rules online. You can find it here: https://ast-grep.github.io/playg.... I hope you find ast-grep useful and fun to use. I would love to hear your feedback and questions. Thank you for checking out my project!
Oh that's slick. Installed. Definitely something I can see myself using quite often. I'll try it and report back :)
Herrington Darkholme
A new video about ast-grep landed! https://twitter.com/hd_nvim/stat...
Herrington Darkholme
ast-grep is on brew now! https://formulae.brew.sh/formula...