⚡A fast and polyglot tool for code structrual search, lint and rewriting at large scale.
ast-grep is a tool to structural search code by pattern code. It is like your old-friend grep but it matches AST nodes instead of text. You can write patterns as if you are writing ordinary code. ast-grep is a versatile tool. You can use it as a searcher, a linter and a code refactoring tool. Think ast-grep as an hybrid of grep, eslint and codemod.
About this launch
ast-grep was hunted by Herrington Darkholme in August 29th 2023.
- #4Week rank