Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
lib /
utils /
Delete
Unzip
Name
Size
Permission
Date
Action
audit-error.js
1.02
KB
-rw-r--r--
2024-07-09 00:04
auth.js
3.21
KB
-rw-r--r--
2024-07-09 00:04
cmd-list.js
2.89
KB
-rw-r--r--
2025-03-27 09:29
completion.fish
1.56
KB
-rw-r--r--
2023-06-20 15:00
completion.sh
1.85
KB
-rwxr-xr-x
2022-10-11 19:59
did-you-mean.js
1.16
KB
-rw-r--r--
2025-03-27 09:29
display.js
15.38
KB
-rw-r--r--
2024-07-09 00:04
error-message.js
14.6
KB
-rw-r--r--
2025-03-27 09:29
explain-dep.js
3.03
KB
-rw-r--r--
2024-05-09 19:00
explain-eresolve.js
2.56
KB
-rw-r--r--
2023-08-09 09:23
format-bytes.js
629
B
-rw-r--r--
2022-10-11 19:59
format-search-stream.js
4.7
KB
-rw-r--r--
2025-03-27 09:29
format.js
1.91
KB
-rw-r--r--
2024-07-09 00:04
get-identity.js
802
B
-rw-r--r--
2023-01-06 19:00
get-workspaces.js
1.71
KB
-rw-r--r--
2024-07-09 00:04
installed-deep.js
1.1
KB
-rw-r--r--
2024-07-09 00:04
installed-shallow.js
583
B
-rw-r--r--
2024-05-09 19:00
is-windows.js
177
B
-rw-r--r--
2024-05-09 19:00
log-file.js
7.78
KB
-rw-r--r--
2024-07-09 00:04
npm-usage.js
2.02
KB
-rw-r--r--
2023-08-09 09:23
open-url.js
2.36
KB
-rw-r--r--
2024-07-09 00:04
output-error.js
767
B
-rw-r--r--
2024-07-09 00:04
ping.js
252
B
-rw-r--r--
2025-03-27 09:29
queryable.js
9.56
KB
-rw-r--r--
2024-07-09 00:04
read-user-info.js
1.91
KB
-rw-r--r--
2024-07-09 00:04
reify-finish.js
886
B
-rw-r--r--
2024-07-09 00:04
reify-output.js
5.65
KB
-rw-r--r--
2025-03-27 09:29
sbom-cyclonedx.js
5.21
KB
-rw-r--r--
2025-03-27 09:29
sbom-spdx.js
4.59
KB
-rw-r--r--
2025-03-27 09:29
tar.js
3.47
KB
-rw-r--r--
2025-03-27 09:29
timers.js
2.07
KB
-rw-r--r--
2024-05-09 19:00
update-workspaces.js
1013
B
-rw-r--r--
2024-05-09 19:00
validate-lockfile.js
1023
B
-rw-r--r--
2022-10-11 19:59
verify-signatures.js
11.92
KB
-rw-r--r--
2025-03-27 09:29
Save
Rename
// pass in an arborist object, and it'll output the data about what // was done, what was audited, etc. // // added ## packages, removed ## packages, and audited ## packages in 19.157s // // 1 package is looking for funding // run `npm fund` for details // // found 37 vulnerabilities (5 low, 7 moderate, 25 high) // run `npm audit fix` to fix them, or `npm audit` for details const { log, output } = require('proc-log') const { depth } = require('treeverse') const ms = require('ms') const npmAuditReport = require('npm-audit-report') const { readTree: getFundingInfo } = require('libnpmfund') const auditError = require('./audit-error.js') // TODO: output JSON if flatOptions.json is true const reifyOutput = (npm, arb) => { const { diff, actualTree } = arb // note: fails and crashes if we're running audit fix and there was an error // which is a good thing, because there's no point printing all this other // stuff in that case! const auditReport = auditError(npm, arb.auditReport) ? null : arb.auditReport // don't print any info in --silent mode, but we still need to // set the exitCode properly from the audit report, if we have one. if (npm.silent) { getAuditReport(npm, auditReport) return } const summary = { added: 0, removed: 0, changed: 0, audited: auditReport && !auditReport.error ? actualTree.inventory.size : 0, funding: 0, } if (diff) { const showDiff = npm.config.get('dry-run') || npm.config.get('long') const chalk = npm.chalk depth({ tree: diff, visit: d => { switch (d.action) { case 'REMOVE': if (showDiff) { /* eslint-disable-next-line max-len */ output.standard(`${chalk.blue('remove')} ${d.actual.name} ${d.actual.package.version}`) } summary.removed++ break case 'ADD': if (showDiff) { output.standard(`${chalk.green('add')} ${d.ideal.name} ${d.ideal.package.version}`) } actualTree.inventory.has(d.ideal) && summary.added++ break case 'CHANGE': if (showDiff) { /* eslint-disable-next-line max-len */ output.standard(`${chalk.cyan('change')} ${d.actual.name} ${d.actual.package.version} => ${d.ideal.package.version}`) } summary.changed++ break default: return } const node = d.actual || d.ideal log.silly(d.action, node.location) }, getChildren: d => d.children, }) } if (npm.flatOptions.fund) { const fundingInfo = getFundingInfo(actualTree, { countOnly: true }) summary.funding = fundingInfo.length } if (npm.flatOptions.json) { if (auditReport) { // call this to set the exit code properly getAuditReport(npm, auditReport) summary.audit = npm.command === 'audit' ? auditReport : auditReport.toJSON().metadata } output.buffer(summary) } else { packagesChangedMessage(npm, summary) packagesFundingMessage(npm, summary) printAuditReport(npm, auditReport) } } // if we're running `npm audit fix`, then we print the full audit report // at the end if there's still stuff, because it's silly for `npm audit` // to tell you to run `npm audit` for details. otherwise, use the summary // report. if we get here, we know it's not quiet or json. // If the loglevel is silent, then we just run the report // to get the exitCode set appropriately. const printAuditReport = (npm, report) => { const res = getAuditReport(npm, report) if (!res || !res.report) { return } output.standard(`\n${res.report}`) } const getAuditReport = (npm, report) => { if (!report) { return } // when in silent mode, we print nothing. the JSON output is // going to just JSON.stringify() the report object. const reporter = npm.silent ? 'quiet' : npm.flatOptions.json ? 'quiet' : npm.command !== 'audit' ? 'install' : 'detail' const defaultAuditLevel = npm.command !== 'audit' ? 'none' : 'low' const auditLevel = npm.flatOptions.auditLevel || defaultAuditLevel const res = npmAuditReport(report, { reporter, ...npm.flatOptions, auditLevel, chalk: npm.chalk, }) if (npm.command === 'audit') { process.exitCode = process.exitCode || res.exitCode } return res } const packagesChangedMessage = (npm, { added, removed, changed, audited }) => { const msg = ['\n'] if (added === 0 && removed === 0 && changed === 0) { msg.push('up to date') if (audited) { msg.push(', ') } } else { if (added) { msg.push(`added ${added} package${added === 1 ? '' : 's'}`) } if (removed) { if (added) { msg.push(', ') } if (added && !audited && !changed) { msg.push('and ') } msg.push(`removed ${removed} package${removed === 1 ? '' : 's'}`) } if (changed) { if (added || removed) { msg.push(', ') } if (!audited && (added || removed)) { msg.push('and ') } msg.push(`changed ${changed} package${changed === 1 ? '' : 's'}`) } if (audited) { msg.push(', and ') } } if (audited) { msg.push(`audited ${audited} package${audited === 1 ? '' : 's'}`) } msg.push(` in ${ms(Date.now() - npm.started)}`) output.standard(msg.join('')) } const packagesFundingMessage = (npm, { funding }) => { if (!funding) { return } output.standard('') const pkg = funding === 1 ? 'package' : 'packages' const is = funding === 1 ? 'is' : 'are' output.standard(`${funding} ${pkg} ${is} looking for funding`) output.standard(' run `npm fund` for details') } module.exports = reifyOutput