Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
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
completion
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
audit-error.js
1.02
KB
-rw-r--r--
2024-04-10 09:40
auth.js
2.8
KB
-rw-r--r--
2023-02-19 06:00
cmd-list.js
2.89
KB
-rw-r--r--
2023-10-24 06:00
completion.fish
1.56
KB
-rw-r--r--
2023-06-20 17:20
completion.sh
1.85
KB
-rwxr-xr-x
2022-10-11 10:59
did-you-mean.js
1.45
KB
-rw-r--r--
2023-08-09 13:29
display.js
6.48
KB
-rw-r--r--
2024-02-19 06:00
error-message.js
13.53
KB
-rw-r--r--
2024-04-10 09:40
exit-handler.js
6.78
KB
-rw-r--r--
2024-04-10 09:40
explain-dep.js
3.5
KB
-rw-r--r--
2023-06-20 17:20
explain-eresolve.js
2.56
KB
-rw-r--r--
2023-08-09 13:29
format-bytes.js
629
B
-rw-r--r--
2022-10-11 10:59
format-search-stream.js
3.82
KB
-rw-r--r--
2024-03-03 10:00
get-identity.js
802
B
-rw-r--r--
2022-12-07 06:00
is-windows.js
233
B
-rw-r--r--
2022-10-11 10:59
log-file.js
7.1
KB
-rw-r--r--
2024-02-19 06:00
log-shim.js
1.68
KB
-rw-r--r--
2022-10-11 10:59
npm-usage.js
2.02
KB
-rw-r--r--
2023-08-09 13:29
open-url-prompt.js
1.4
KB
-rw-r--r--
2024-02-19 06:00
open-url.js
1.08
KB
-rw-r--r--
2023-11-30 06:00
otplease.js
1.23
KB
-rw-r--r--
2022-12-07 06:00
ping.js
252
B
-rw-r--r--
2022-10-11 10:59
pulse-till-done.js
412
B
-rw-r--r--
2022-10-11 10:59
queryable.js
9.43
KB
-rw-r--r--
2023-11-05 06:00
read-user-info.js
2
KB
-rw-r--r--
2024-04-10 09:40
reify-finish.js
876
B
-rw-r--r--
2022-10-11 10:59
reify-output.js
6.02
KB
-rw-r--r--
2024-03-03 10:00
replace-info.js
807
B
-rw-r--r--
2024-04-10 09:40
sbom-cyclonedx.js
5.2
KB
-rw-r--r--
2023-11-30 06:00
sbom-spdx.js
4.58
KB
-rw-r--r--
2024-02-19 06:00
tar.js
3.9
KB
-rw-r--r--
2022-12-07 06:00
timers.js
2.73
KB
-rw-r--r--
2022-12-07 06:00
update-notifier.js
4.08
KB
-rw-r--r--
2024-03-03 10:00
validate-lockfile.js
1023
B
-rw-r--r--
2022-10-11 10:59
web-auth.js
558
B
-rw-r--r--
2022-10-11 10:59
Save
Rename
const Npm = require('../npm') const { distance } = require('fastest-levenshtein') const pkgJson = require('@npmcli/package-json') const { commands } = require('./cmd-list.js') const didYouMean = async (path, scmd) => { const close = commands.filter(cmd => distance(scmd, cmd) < scmd.length * 0.4 && scmd !== cmd) let best = [] for (const str of close) { const cmd = Npm.cmd(str) best.push(` npm ${str} # ${cmd.description}`) } // We would already be suggesting this in `npm x` so omit them here const runScripts = ['stop', 'start', 'test', 'restart'] try { const { content: { scripts, bin } } = await pkgJson.normalize(path) best = best.concat( Object.keys(scripts || {}) .filter(cmd => distance(scmd, cmd) < scmd.length * 0.4 && !runScripts.includes(cmd)) .map(str => ` npm run ${str} # run the "${str}" package script`), Object.keys(bin || {}) .filter(cmd => distance(scmd, cmd) < scmd.length * 0.4) /* eslint-disable-next-line max-len */ .map(str => ` npm exec ${str} # run the "${str}" command from either this or a remote npm package`) ) } catch (_) { // gracefully ignore not being in a folder w/ a package.json } if (best.length === 0) { return '' } const suggestion = best.length === 1 ? `\n\nDid you mean this?\n${best[0]}` : `\n\nDid you mean one of these?\n${best.slice(0, 3).join('\n')}` return suggestion } module.exports = didYouMean