node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



Coverage Status Build Status Known Vulnerabilities dependencies Status


Sub Zero dependency search.

Project Info
License: Apache-2.0
Build: make
Issue tracker:
Engines: Node.js 4.x, 6.x, 8.x


npm install szero -g


szero /path_to/project  (or use '.' for current directory)
szero .
szero . --ignore (ignore the specified directories. e.g: bower_components,examples)
szero . --file (enable file reporter)
szero . --license (enable license lookup)
szero . --filename <filename> (change the default filename)
szero . --ci (enables process.exit() when unused dependency found)
szero . --dev (enables devDependencies processing)
szero . --summary (enables summary report)
szero . --silent (hides the console output)
szero . --silent (omits the output of information in the console) 



The default output is to the console, but you can specify a "reporter" of file to also output the results to a file called szero.txt

szero /path_to/myproject --file

To change the filename that is outputted, use the --filename option.

szero /path_to/myproject --filename output.txt

Programmatic API

To use the szero api in code, first install it locally

npm install szero --save

Then require it in your code and call the report method, which returns a Promise:

const szero = require('szero'); => {

To have the ouput be in the "file" format, for outputting to a file, just use the fileReport method, which also returns a Promise:

const szero = require('szero');
szero.fileReport(directory).then((fileReport) => {
    fs.writeFileSync('szero.txt', fileReport);

More information can be found on the docs:


Please read the contributing guide