108 releases (24 breaking)

new 0.25.4 Jul 26, 2024
0.24.1 Jun 26, 2024
0.20.2 Mar 27, 2024
0.16.0 Dec 29, 2023
0.1.9 Nov 5, 2022

#929 in Development tools

Download history 293/week @ 2024-04-04 175/week @ 2024-04-11 115/week @ 2024-04-18 217/week @ 2024-04-25 382/week @ 2024-05-02 396/week @ 2024-05-09 30/week @ 2024-05-16 152/week @ 2024-05-23 306/week @ 2024-05-30 199/week @ 2024-06-06 44/week @ 2024-06-13 242/week @ 2024-06-20 178/week @ 2024-06-27 13/week @ 2024-07-04 235/week @ 2024-07-11 203/week @ 2024-07-18

667 downloads per month

MIT license

470KB
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–42MB
~1M SLoC