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 /
Delete
Unzip
Name
Size
Permission
Date
Action
commands
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
es6
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
utils
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
workspaces
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
arborist-cmd.js
1.59
KB
-rw-r--r--
2023-01-17 06:00
base-command.js
5.27
KB
-rw-r--r--
2024-03-03 10:00
cli-entry.js
2.71
KB
-rw-r--r--
2023-08-09 13:29
cli.js
210
B
-rw-r--r--
2023-08-09 13:29
lifecycle-cmd.js
554
B
-rw-r--r--
2023-01-17 06:00
npm.js
13.32
KB
-rw-r--r--
2024-04-10 09:40
package-url-cmd.js
1.89
KB
-rw-r--r--
2023-06-20 17:20
Save
Rename
// Base command for opening urls from a package manifest (bugs, docs, repo) const pacote = require('pacote') const hostedGitInfo = require('hosted-git-info') const openUrl = require('./utils/open-url.js') const log = require('./utils/log-shim') const BaseCommand = require('./base-command.js') class PackageUrlCommand extends BaseCommand { static params = [ 'browser', 'registry', 'workspace', 'workspaces', 'include-workspace-root', ] static workspaces = true static ignoreImplicitWorkspace = false static usage = ['[<pkgname> [<pkgname> ...]]'] async exec (args) { if (!args || !args.length) { args = ['.'] } for (const arg of args) { // XXX It is very odd that `where` is how pacote knows to look anywhere // other than the cwd. const opts = { ...this.npm.flatOptions, where: this.npm.localPrefix, fullMetadata: true, } const mani = await pacote.manifest(arg, opts) const url = this.getUrl(arg, mani) log.silly(this.name, 'url', url) await openUrl(this.npm, url, `${mani.name} ${this.name} available at the following URL`) } } async execWorkspaces (args) { if (args && args.length) { return this.exec(args) } await this.setWorkspaces() return this.exec(this.workspacePaths) } // given a manifest, try to get the hosted git info from it based on // repository (if a string) or repository.url (if an object) returns null // if it's not a valid repo, or not a known hosted repo hostedFromMani (mani) { const r = mani.repository const rurl = !r ? null : typeof r === 'string' ? r : typeof r === 'object' && typeof r.url === 'string' ? r.url : null // hgi returns undefined sometimes, but let's always return null here return (rurl && hostedGitInfo.fromUrl(rurl.replace(/^git\+/, ''))) || null } } module.exports = PackageUrlCommand