REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.37 KB
Close
/opt/alt/alt-nodejs22/root/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/bin/audit.js
Text
Base64
const Arborist = require('../') const printTree = require('./lib/print-tree.js') const log = require('./lib/logging.js') const Vuln = require('../lib/vuln.js') const printReport = report => { for (const vuln of report.values()) { log.info(printVuln(vuln)) } if (report.topVulns.size) { log.info('\n# top-level vulnerabilities') for (const vuln of report.topVulns.values()) { log.info(printVuln(vuln)) } } } const printVuln = vuln => { return { __proto__: { constructor: Vuln }, name: vuln.name, issues: [...vuln.advisories].map(a => printAdvisory(a)), range: vuln.simpleRange, nodes: [...vuln.nodes].map(node => `${node.name} ${node.location || '#ROOT'}`), ...(vuln.topNodes.size === 0 ? {} : { topNodes: [...vuln.topNodes].map(node => `${node.location || '#ROOT'}`), }), } } const printAdvisory = a => `${a.title}${a.url ? ' ' + a.url : ''}` module.exports = (options, time) => { const arb = new Arborist(options) return arb .audit(options) .then(time) .then(async ({ timing, result: tree }) => { if (options.fix) { printTree(tree) } printReport(arb.auditReport) if (tree.meta && options.save) { await tree.meta.save() } return options.fix ? `resolved ${tree.inventory.size} deps in ${timing.seconds}` : `done in ${timing.seconds}` }) }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
lib
DIR
-
drwxr-xr-x
2026-03-14 07:02:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
actual.js
550 B
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
audit.js
1.37 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
funding.js
1.12 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ideal.js
396 B
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
3.29 KB
lrwxr-xr-x
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
license.js
1.45 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
prune.js
1.12 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
reify.js
1.12 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
shrinkwrap.js
209 B
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
virtual.js
364 B
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).