Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
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 /
node_modules /
libnpx /
Delete
Unzip
Name
Size
Permission
Date
Action
locales
[ DIR ]
drwxr-xr-x
2024-03-12 22:00
auto-fallback.js
1.51
KB
-rw-r--r--
2023-02-16 16:16
child.js
2.2
KB
-rw-r--r--
2023-02-16 16:16
get-prefix.js
1.23
KB
-rw-r--r--
2023-02-16 16:16
index.js
12.62
KB
-rw-r--r--
2023-02-16 16:16
libnpx.1
6.7
KB
-rw-r--r--
2023-02-16 16:16
package.json
2.59
KB
-rw-r--r--
2023-02-16 16:16
parse-args.js
7.1
KB
-rw-r--r--
2023-02-16 16:16
util.js
390
B
-rw-r--r--
2023-02-16 16:16
y.js
490
B
-rw-r--r--
2023-02-16 16:16
Save
Rename
'use strict' const promisify = require('./util.js').promisify const path = require('path') const statAsync = promisify(require('fs').stat) module.exports = getPrefix function getPrefix (root) { const original = root = path.resolve(root) while (path.basename(root) === 'node_modules') { root = path.dirname(root) } if (original !== root) { return Promise.resolve(root) } else { return Promise.resolve(getPrefixFromTree(root)) } } function getPrefixFromTree (current) { if (isRootPath(current, process.platform)) { return false } else { return Promise.all([ fileExists(path.join(current, 'package.json')), fileExists(path.join(current, 'node_modules')) ]).then(args => { const hasPkg = args[0] const hasModules = args[1] if (hasPkg || hasModules) { return current } else { return getPrefixFromTree(path.dirname(current)) } }) } } module.exports._fileExists = fileExists function fileExists (f) { return statAsync(f).catch(err => { if (err.code !== 'ENOENT') { throw err } }) } module.exports._isRootPath = isRootPath function isRootPath (p, platform) { return platform === 'win32' ? p.match(/^[a-z]+:[/\\]?$/i) : p === '/' }