jsgrep-frd

1.0.0 • Public • Published

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/

Package Sidebar

Install

npm i jsgrep-frd

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • amireh