-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8852453
commit 7bc16e4
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# jscode-find-callee | ||
# jscode-find-callee [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/paulvollmer/jscode-find-callee/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/jscode-find-callee.svg?style=flat)](https://www.npmjs.com/package/jscode-find-callee) | ||
|
||
This is a tool to find calls at javascript code. | ||
|
||
### Installation | ||
|
||
``` | ||
npm install -g jscode-find-callee | ||
``` | ||
|
||
### Usage | ||
The following example will search for all `console` calls at the `fixtures/console_log_2.js` sourcecode. | ||
``` | ||
node bin/jscode-find-callee fixtures/console_log_2.js | ||
jscode-find-callee fixtures/console_log_2.js | ||
``` | ||
|
||
If you want to search for an other callee instead of `console` you can use the `--name` flag. | ||
``` | ||
node bin/jscode-find-callee --name logger fixtures/console_log_2.js | ||
jscode-find-callee --name logger fixtures/console_log_2.js | ||
``` | ||
|
||
It is also possible to search an entire directory. | ||
``` | ||
node bin/jscode-find-callee --name console fixtures | ||
jscode-find-callee --name console fixtures | ||
``` |