Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paulvollmer authored May 29, 2019
1 parent 8852453 commit 7bc16e4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
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
```

0 comments on commit 7bc16e4

Please sign in to comment.