96 releases (21 breaking)

0.22.3 May 13, 2024
0.21.3 May 3, 2024
0.20.2 Mar 27, 2024
0.16.0 Dec 29, 2023
0.1.9 Nov 5, 2022

#476 in Development tools

Download history 13/week @ 2024-01-29 128/week @ 2024-02-12 608/week @ 2024-02-19 96/week @ 2024-02-26 5/week @ 2024-03-04 308/week @ 2024-03-11 113/week @ 2024-03-18 324/week @ 2024-03-25 49/week @ 2024-04-01 453/week @ 2024-04-08 1/week @ 2024-04-15 322/week @ 2024-04-22 344/week @ 2024-04-29 266/week @ 2024-05-06 199/week @ 2024-05-13

1,131 downloads per month

MIT license

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

~49MB
~1M SLoC