MCPcopy Create free account
hub / github.com/nodejs/node / printAuditReport

Function printAuditReport

deps/npm/lib/utils/reify-output.js:142–148  ·  view source on GitHub ↗
(npm, report)

Source from the content-addressed store, hash-verified

140// if we get here, we know it's not quiet or json.
141// If the loglevel is silent, then we just run the report to get the exitCode set appropriately.
142const printAuditReport = (npm, report) => {
143 const res = getAuditReport(npm, report)
144 if (!res || !res.report) {
145 return
146 }
147 output.standard(`\n${res.report}`)
148}
149
150const getAuditReport = (npm, report) => {
151 if (!report) {

Callers 1

reifyOutputFunction · 0.85

Calls 1

getAuditReportFunction · 0.85

Tested by

no test coverage detected