Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.02 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.02 KB

GSX

JSX-semantic grep

GSX uses tree-sitter API so you can grep for some JSX elements accross your project.

Build status

API

$ gsx 'Button' // search all <Button> in your codebase
$ gsx 'Button.variant' // search all <Button> that have variant props
$ gsx 'Button.variant,size' // search all <Button> that have variant AND size props
$ gsx 'Button.variant,^size' // search all <Button> that have variant AND not size props

Dependencies

GSX uses ripgrep for an initial filtering stage. This reduces the number of files requiring AST construction.

The project embeds as git submodules

Install

$ git clone --recursive https://github.com/flocks/gsx
$ cd gsx
$ make
$ sudo make install