1.0.0 • Published 10 years ago
jsgrep-frd v1.0.0
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-frdThen 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/1.0.0
10 years ago