90 releases (20 breaking)

new 0.21.1 Apr 24, 2024
0.20.5 Apr 11, 2024
0.20.2 Mar 27, 2024
0.16.0 Dec 29, 2023
0.1.9 Nov 5, 2022

#876 in Development tools

Download history 5/week @ 2023-12-28 9/week @ 2024-01-04 14/week @ 2024-01-11 7/week @ 2024-01-25 6/week @ 2024-02-01 386/week @ 2024-02-15 410/week @ 2024-02-22 37/week @ 2024-02-29 181/week @ 2024-03-07 133/week @ 2024-03-14 346/week @ 2024-03-21 124/week @ 2024-03-28 293/week @ 2024-04-04 175/week @ 2024-04-11

939 downloads per month

MIT license

365KB
11K 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

~52MB
~1.5M SLoC