npm-audit-reporter
v1.0.3
Published
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.
Downloads
282
Maintainers
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.
Note
Currently only compatible with npm versions <=6.14.18
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
:
Output for npm-audit-reporter --reporter html
:
Options
| Flag | Short | Description |
| ------------ | ----- | ----------------------------------------------------------------- |
| --reporter
| -r
| "text" for console output in tabuler format, "html" for html file |