@flycode-org/tsfind
v0.1.0
Published
Search in code using tsquery
Downloads
2
Readme
tsfind
Installation
Locally:
npm install @flycode-org/tsfind
# or
yarn add @flycode-org/tsfind
Globally:
npm install --global @flycode-org/tsfind
# or
yarn global add @flycode-org/tsfind
Usage
tsfind
> Search in code using tsquery
ARGUMENTS:
<QUERY FILE> - the query file to execute
<CODE PATH> - path (glob) to code files
FLAGS:
--verbose - emit additional logs
--path-only - only output the paths of the matches
--mark-whitespaces - mark whitespaces in matches in addition to characters
--help, -h - show help
OPTIONS:
--ignore <str> - path (glob) of code files to ignore (multiple)
--context-lines <number> - number of additional lines to include before and after matches [optional]
Development
Run example query on frontend
yarn run cli-dev --color $QUERY_FILE $CODE_PATH | less -R