Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eps1lon/esquery-cli
Command-line interface for `esquery`
https://github.com/eps1lon/esquery-cli
ast cli command-line-tool query selector
Last synced: about 1 month ago
JSON representation
Command-line interface for `esquery`
- Host: GitHub
- URL: https://github.com/eps1lon/esquery-cli
- Owner: eps1lon
- Created: 2021-04-14T09:02:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-14T15:07:47.000Z (almost 4 years ago)
- Last Synced: 2024-12-20T20:47:27.647Z (about 1 month ago)
- Topics: ast, cli, command-line-tool, query, selector
- Language: JavaScript
- Homepage:
- Size: 6.96 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esquery-cli
## Usage
```bash
npx esquery-cli [glob]Queries files for a given AST selector based on `esquery`. Selector documentatio
n can be found at https://github.com/estools/esqueryPositionals:
selector CSS like [string]
glob Files to search. Note that files listed in the .gitignore in the cur
rent working directory are ignored by default.
[string] [default: "**/*.{cjs,js,jsx,mjs,ts,tsx}"]Options:
--version Show version number [boolean]
--help Show help [boolean]
--verbose Logs additional information [boolean] [default: false]
--include-code-frame Logs the codeframe of each query result.
[boolean] [default: false]Examples:
esquery-cli.js "TSAsExpression"
```