Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
libnpmexec /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
file-exists.js
649
B
-rw-r--r--
2023-11-23 07:39
get-bin-from-manifest.js
640
B
-rw-r--r--
2023-11-23 07:39
index.js
8.49
KB
-rw-r--r--
2023-11-23 07:39
is-windows.js
46
B
-rw-r--r--
2023-11-23 07:39
no-tty.js
44
B
-rw-r--r--
2023-11-23 07:39
run-script.js
1.74
KB
-rw-r--r--
2023-11-23 07:39
Save
Rename
const getBinFromManifest = (mani) => { // if we have a bin matching (unscoped portion of) packagename, use that // otherwise if there's 1 bin or all bin value is the same (alias), use // that, otherwise fail const bin = mani.bin || {} if (new Set(Object.values(bin)).size === 1) { return Object.keys(bin)[0] } // XXX probably a util to parse this better? const name = mani.name.replace(/^@[^/]+\//, '') if (bin[name]) { return name } // XXX need better error message throw Object.assign(new Error('could not determine executable to run'), { pkgid: mani._id, }) } module.exports = getBinFromManifest