126 releases (30 breaking)

new 0.31.1 Dec 8, 2024
0.30.1 Nov 26, 2024
0.25.4 Jul 26, 2024
0.20.2 Mar 27, 2024
0.1.9 Nov 5, 2022

#872 in Development tools

Download history 119/week @ 2024-08-18 143/week @ 2024-08-25 92/week @ 2024-09-01 249/week @ 2024-09-08 18/week @ 2024-09-15 359/week @ 2024-09-22 46/week @ 2024-09-29 197/week @ 2024-10-06 85/week @ 2024-10-13 176/week @ 2024-10-20 134/week @ 2024-10-27 95/week @ 2024-11-03 132/week @ 2024-11-10 34/week @ 2024-11-17 138/week @ 2024-11-24 760/week @ 2024-12-01

1,064 downloads per month

MIT license

495KB
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

~8–19MB
~263K SLoC