Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

npm-audit-reporter

GauravChinavle128MIT2.0.1

This project builds on top of the existing npm audit functionality by providing additional features and presenting audit reports in various formats such as HTML, JSON, and tables.

audit, ci, npm, security, report, npm, skip, ignore, exclude, exceptions, node, security, advisory, vulnerabilities, continuous integration, dependencies, check, build, script, nsp

readme

NPM Audit Reporter

This project builds on top of the existing npm audit functionality by providing additional features and presenting audit reports in various formats such as HTML, JSON, and tables.

NPM


Installation

$ npm install --save npm-audit-reporter

or

$ npm install -g npm-audit-reporter

Usage

Run global

npm-audit-reporter --reporter text

Add into package scripts

{
  "scripts": {
    "audit": "npm-audit-reporter --reporter text"
  }
}

Now you can run locally or in your CI pipeline:

npm run audit

Screenshots

Output for npm-audit-reporter --reporter text:

Text audit report in tabular format

Output for npm-audit-reporter --reporter html:

HTML audit report

Options

Flag Short Description
--reporter -r "text" for console output in tabuler format, "html" for html file