96 releases (21 breaking)

new 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

#488 in Development tools

Download history 13/week @ 2024-01-28 124/week @ 2024-02-11 487/week @ 2024-02-18 211/week @ 2024-02-25 14/week @ 2024-03-03 301/week @ 2024-03-10 12/week @ 2024-03-17 417/week @ 2024-03-24 64/week @ 2024-03-31 438/week @ 2024-04-07 17/week @ 2024-04-14 314/week @ 2024-04-21 341/week @ 2024-04-28 94/week @ 2024-05-05

786 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

~50MB
~1M SLoC