Current Path : /lib/node_modules/npm/node_modules/npm-audit-report/reporters/ |
Current File : //lib/node_modules/npm/node_modules/npm-audit-report/reporters/quiet.js |
'use strict' const Utils = require('../lib/utils') const report = function (data) { const totalVulnCount = Utils.totalVulnCount(data.metadata.vulnerabilities) return { report: '', exitCode: totalVulnCount === 0 ? 0 : 1 } } module.exports = report