node/deps/npm/node_modules/npm-audit-report
claudiahdz db54b57042 deps: upgrade npm to 6.14.7
PR-URL: https://github.com/nodejs/node/pull/34468
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruy Adorno <ruyadorno@github.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-07-26 22:30:56 -07:00
..
lib deps: upgrade npm to 6.2.0 2018-07-29 14:16:56 +02:00
reporters deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
CHANGELOG.md deps: upgrade npm to 6.14.7 2020-07-26 22:30:56 -07:00
index.js deps: upgrade npm to 6.2.0 2018-07-29 14:16:56 +02:00
LICENSE deps: upgrade npm to 6.1.0 2018-05-24 23:24:45 -07:00
package.json deps: upgrade npm to 6.14.7 2020-07-26 22:30:56 -07:00
README.md deps: upgrade npm to 6.2.0 2018-07-29 14:16:56 +02:00

npm audit security report

Given a response from the npm security api, render it into a variety of security reports

Build Status Build status Coverage Status

The response is an object that contains an output string (the report) and a suggested exitCode.

{
  report: 'string that contains the security report',
  exit: 1
}

Basic usage example

'use strict'
const Report = require('npm-audit-report')
const options = {
  reporter: 'json'
}

Report(response, options, (result) => {
  console.log(result.report)
  process.exitCode = result.exitCode
})

options

option values default description
reporter     install, detail, json, quiet install specify which output format you want to use
withColor     true, false   true   indicates if some report elements should use colors
withUnicode   true, false                  true indicates if unicode characters should be used