Skip to content

flocks/gsx

Repository files navigation

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

About

JSX grepper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published