File Explorer

/proc/4/root/var/lang/lib/node_modules/npm/node_modules/npm-audit-report/lib

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

exit-code.js419 B · 15 lines
// return 1 if any vulns in the set are at or above the specified severityconst severities = new Map(Object.entries([  'info',  'low',  'moderate',  'high',  'critical',  'none',]).map(s => s.reverse())) module.exports = (data, level) =>  Object.entries(data.metadata.vulnerabilities)    .some(([sev, count]) => count > 0 && severities.has(sev) &&      severities.get(sev) >= severities.get(level)) ? 1 : 0