Skip to content

A CLI tool to find vulnerabilities in your node packages by searching through an online databases of node vulnerabilities.

Notifications You must be signed in to change notification settings

zekaryas1/node_vulnerability_checkr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node vulnerability checker

Introduction

  • A CLI tool to check node package vulnerability
  • The program takes package.json dependencies and run it against ossindex and osvindex vulnerability databases
  • Output can be in either table, json or pretty-json format
  • Run the program where package.json is available

project output in table format

Installation

git clone [email protected]:zekaryas1/node_vulnerability_checkr.git
cd node_vulnerability_checkr
npm install -g .

How to use

Instructions

Usage: check -with <provider-name> -format <display-option>

Options:
  --version  Show version number                                       [boolean]
  --with     Which vulnerability-info provider you want to use
                                     [string] [required] [choices: "oss", "osv"]
  --format   how to display the output as i.e table or json
           [string] [choices: "table", "json", "pretty-json"] [default: "table"]
  --help     Show help                                                 [boolean]

Examples

Run the program where package.json is available

#To run the checker with osv database
#Result is in table format
check --with osv

#To run the checker with oss database
check --with oss
 
#To get result in compressed-json format
check --with oss --format json

#To get result in default/pretty json format
check --with osv --format pretty-json

Images

  • tabel output
  • json output
  • pretty-json output

Resources used to build this project

About

A CLI tool to find vulnerabilities in your node packages by searching through an online databases of node vulnerabilities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages