1.0.0 • Published 8 years ago

jsgrep-frd v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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/