jsgrep-frd
v1.0.0
Published
Syntax-aware JavaScript grep.
Downloads
2
Maintainers
Readme
jsgrep
A JavaScript "grep" that runs against the AST. Useful for locating tokens or statements that might be difficult to catch using regular grep, like instance method calls with a certain arity.
Installation
npm install -g jsgrep-frd
Then run jsgrep --help
to get started.
Supported Matching Tokens
Instance method calls
TODO
Example for locating log
calls with two arguments:
jsgrep -Hnc "#log{2}" lib/