1.0.0-alpha.4 • Published 7 years ago

find-dead-modules v1.0.0-alpha.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Installation

npm install -g find-dead-modules

Usage

Navigate to a javascript project of some sort and run find-dead-modules. E.g.

⨠ cd ~/my-awesome-project
⨠ find-dead-modules

Interpreting results

When no unused/dead modules are found, the script prints nothing and has an exit code of zero.

Any unused/dead modules that are found are loggged to stdout, one file path per line. An exit code of 1 will signal that one or more of these were found.

Configuration

The script reads your .gitignore file to figure out what can be safely ignored. Apart from that, you can't configure anything right now. This is likely to change when the script has proven to be useful.