Visit
ast-grep

ast-grep

5· 1 review

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

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!

1 review
automationcommand-line-tools

Reviews for ast-grep

Hear what real users highlight about this tool.

5
Based on 1 review
5
1
4
0
3
0
2
0
1
0
沈青川
沈青川5/52yr ago

I'm using ast-grep for Vue Vine and some other projects, it's super efficient for AST node searching, and I really love the rules mechanism, it indeed provides a much more easy, intuitive and declarative way for describing my requirements, I don't need to write a lot of walk methods or write very imperative visitors.

For today's JavaScript ecosystem, ast-grep is really a good choice to do tasks like "Code search and analysis", "Code rewrite/refactor", "Lint for specific expressions or statements".

It's definitely worth a try!

Source: Product Hunt