Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including require-analyse with all npm packages installed. Try it out:

var requireAnalyse = require("require-analyse")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

require-analyse v0.2.0

Analyse requires in node projects to detect dead code

Require analyse

npm license Build Status Coverage Status dependencies Status devDependencies Status Known Vulnerabilities Donate

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free