░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/usr/lib/node_modules/npm/node_modules/npm-audit-report/lib
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: index.js
'use strict' const reporters = { install: require('./reporters/install'), detail: require('./reporters/detail'), json: require('./reporters/json'), quiet: require('./reporters/quiet'), } const exitCode = require('./exit-code.js') module.exports = Object.assign((data, options = {}) => { const { reporter = 'install', chalk, unicode = true, indent = 2, } = options // CLI defaults this to `null` so the defaulting method above doesn't work const auditLevel = options.auditLevel || 'low' if (!data) { throw Object.assign( new TypeError('ENOAUDITDATA'), { code: 'ENOAUDITDATA', message: 'missing audit data', } ) } if (typeof data.toJSON === 'function') { data = data.toJSON() } return { report: reporters[reporter](data, { chalk, unicode, indent }), exitCode: exitCode(data, auditLevel), } }, { reporters })
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 reporters/
DIR
—
2023-09-24 03:45
📄 colors.js
JS
575 B
2023-09-24 03:45
EDIT
📄 exit-code.js
JS
419 B
2023-09-24 03:45
EDIT
📄 index.js
JS
911 B
2023-09-24 03:45
EDIT