123 releases (29 breaking)

0.30.0 Nov 11, 2024
0.28.1 Oct 20, 2024
0.25.4 Jul 26, 2024
0.20.2 Mar 27, 2024
0.1.9 Nov 5, 2022

#1321 in Development tools

Download history 255/week @ 2024-07-29 471/week @ 2024-08-05 104/week @ 2024-08-12 102/week @ 2024-08-19 99/week @ 2024-08-26 254/week @ 2024-09-02 83/week @ 2024-09-09 152/week @ 2024-09-16 229/week @ 2024-09-23 187/week @ 2024-09-30 52/week @ 2024-10-07 215/week @ 2024-10-14 45/week @ 2024-10-21 138/week @ 2024-10-28 93/week @ 2024-11-04 133/week @ 2024-11-11

541 downloads per month

MIT license

485KB
14K SLoC

@ast-grep/napi

ast-grep

ast-grep(sg)

ast-grep(sg) is a CLI tool for code structural search, lint, and rewriting.

This npm package is for programmatic usage of ast-grep. Please see the API usage guide and API reference.

Other resources include ast-grep's official site and repository.

Support matrix

Operating Systems

node14 node16 node18
Windows x64
macOS x64
macOS arm64
Linux x64 gnu
Windows x32
Windows arm64

Dependencies

~31–41MB
~1M SLoC