Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.143.213.242
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/npm/node_modules/npm-registry-client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/npm/node_modules/npm-registry-client/index.js
// utilities for working with the js-registry site.

module.exports = RegClient

var join = require('path').join
var fs = require('graceful-fs')

var npmlog
try {
  npmlog = require('npmlog')
} catch (er) {
  npmlog = {
    error: noop,
    warn: noop,
    info: noop,
    verbose: noop,
    silly: noop,
    http: noop,
    pause: noop,
    resume: noop
  }
}

function noop () {}

function RegClient (config) {
  this.config = Object.create(config || {})

  this.config.proxy = this.config.proxy || {}
  if (!this.config.proxy.https && this.config.proxy.http) {
    this.config.proxy.https = this.config.proxy.http
  }

  this.config.ssl = this.config.ssl || {}
  if (this.config.ssl.strict === undefined) this.config.ssl.strict = true

  this.config.retry = this.config.retry || {}
  if (typeof this.config.retry.retries !== 'number') this.config.retry.retries = 2
  if (typeof this.config.retry.factor !== 'number') this.config.retry.factor = 10
  if (typeof this.config.retry.minTimeout !== 'number') this.config.retry.minTimeout = 10000
  if (typeof this.config.retry.maxTimeout !== 'number') this.config.retry.maxTimeout = 60000

  this.config.userAgent = this.config.userAgent || 'node/' + process.version
  this.config.defaultTag = this.config.defaultTag || 'latest'

  this.log = this.config.log || npmlog
  delete this.config.log

  var client = this
  fs.readdirSync(join(__dirname, 'lib')).forEach(function (f) {
    var entry = join(__dirname, 'lib', f)

    // lib/group-name/operation.js -> client.groupName.operation
    var stat = fs.statSync(entry)
    if (stat.isDirectory()) {
      var groupName = f.replace(/-([a-z])/, dashToCamel)
      fs.readdirSync(entry).forEach(function (f) {
        if (!f.match(/\.js$/)) return

        if (!client[groupName]) {
          // keep client.groupName.operation from stomping client.operation
          client[groupName] = Object.create(client)
        }
        var name = f.replace(/\.js$/, '').replace(/-([a-z])/, dashToCamel)
        client[groupName][name] = require(join(entry, f))
      })
      return
    }

    if (!f.match(/\.js$/)) return
    var name = f.replace(/\.js$/, '').replace(/-([a-z])/, dashToCamel)
    client[name] = require(entry)
  })
}

function dashToCamel (_, l) {
  return l.toUpperCase()
}

Anon7 - 2022
AnonSec Team