/szero

The main goal is to show unused dependencies on Node.js modules, more specifically, to show that Foo dependency declared in package.json is not being used because there is no require('foo').

Primary LanguageJavaScriptOtherNOASSERTION

szero

Coverage Status Build Status Known Vulnerabilities dependencies Status

NPM

Sub Zero dependency search.

Installation

npm install szero -g

Usage

$ szero . --help
Usage: szero /path/to/project [options]

Options:
  --version      Show version number                                   [boolean]
  --ignore, -i   ignores the specified directories separated by space. e.g:
                 bower_components examples test            [array] [default: []]
  --ci           enables process.exit() when unused dependency found.
                                                                [default: false]
  --dev          enables devDependencies processing.            [default: false]
  --license, -l  Displays license information for each dependency.
                                                                [default: false]
  --help         Show help                                             [boolean]
------------------------------------------------------------
[ Unused dependencies ]
------------------------------------------------------------
commander
------------------------------------------------------------
[ Unused devDependencies ]
------------------------------------------------------------
eslint
eslint-config-semistandard
eslint-config-standard
eslint-plugin-import
eslint-plugin-node
eslint-plugin-promise
eslint-plugin-react
eslint-plugin-standard
license-reporter
nsp
nyc
standard-version
tap-spec

NOTE: Not always devDependences are used via require(), so a larger number of unused devDependencies is expected in the output result.

When using the option --license or -l szero will display information about license for each dependency.

Thanks to license-reporter for the license information for each dependency.

Contributing

Please read the contributing guide