132 releases (32 breaking)

new 0.33.1 Jan 13, 2025
0.32.3 Dec 30, 2024
0.30.1 Nov 26, 2024
0.25.4 Jul 26, 2024
0.1.9 Nov 5, 2022

#595 in Development tools

Download history 245/week @ 2024-09-18 146/week @ 2024-09-25 198/week @ 2024-10-02 67/week @ 2024-10-09 201/week @ 2024-10-16 18/week @ 2024-10-23 180/week @ 2024-10-30 163/week @ 2024-11-06 31/week @ 2024-11-13 90/week @ 2024-11-20 313/week @ 2024-11-27 1515/week @ 2024-12-04 1021/week @ 2024-12-11 301/week @ 2024-12-18 108/week @ 2024-12-25 656/week @ 2025-01-01

2,341 downloads per month

MIT license

530KB
15K 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

~9–19MB
~280K SLoC