Require analyse
Simple analyse of requires to find unused (dead) and most used code.
Installation
npm install -g require-analyse
Usage
Usage: analyse <command> [options] Commands: analyse analyse files Options: --version Show version number [boolean] --files overrided node paths [array] --ignoreFileName ignore files which name includes those substrings [array] --ignoreDir ignore dirs with exactly those names [array] --path project path [string] [required] --debug show debug output [boolean] -h, --help Show help [boolean]
Sample
npx require-analyse --node_path /web/avia/lib/nodejs/ --node_path /web/avia/src/ --path /web/avia --ignoreFileName mcore_modules --ignoreFileName /bin/ --ignoreFileName /DAL/ --ignoreDir .git --ignoreDir tests --ignoreDir node_modules