New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

szero

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

szero

Sub Zero dependency search.

Source
npmnpm
Version
0.8.3
Version published
Weekly downloads
50
-5.66%
Maintainers
2
Weekly downloads
 
Created
Source

szero

Coverage Status Build Status Known Vulnerabilities dependencies Status

NPM

Sub Zero dependency search.

Project Info
License:Apache-2.0
Build:make
Documentation:https://bucharest-gold.github.io/szero/module-szero.html
Issue tracker:https://github.com/bucharest-gold/szero/issues
Engines:Node.js 4.x, 6.x, 7.x

Installation

npm install szero -g

Usage

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) 

out.gif

a.png

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');
szero.report(directory).then((jsonReport) => {
    console.log(jsonReport);
});

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: https://bucharest-gold.github.io/szero/module-szero.html

Contributing

Please read the contributing guide

FAQs

Package last updated on 18 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts