Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.191.254.28
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
node_modules /
npm /
node_modules /
libnpx /
Delete
Unzip
Name
Size
Permission
Date
Action
locales
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
CHANGELOG.md
27.48
KB
-rw-r--r--
2021-03-10 14:36
LICENSE.md
755
B
-rw-r--r--
2021-03-10 14:36
README.md
6.31
KB
-rw-r--r--
2021-03-10 14:36
auto-fallback.js
1.51
KB
-rw-r--r--
2021-03-10 14:36
child.js
2.2
KB
-rw-r--r--
2021-03-10 14:36
get-prefix.js
1.23
KB
-rw-r--r--
2021-03-10 14:36
index.js
12.62
KB
-rw-r--r--
2021-03-10 14:36
libnpx.1
6.7
KB
-rw-r--r--
2021-03-10 14:36
package.json
2.59
KB
-rw-r--r--
2021-03-10 14:36
parse-args.js
7.1
KB
-rw-r--r--
2021-03-10 14:36
util.js
390
B
-rw-r--r--
2021-03-10 14:36
y.js
490
B
-rw-r--r--
2021-03-10 14:36
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 === '/' }