GRAYBYTE WORDPRESS FILE MANAGER1238

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib/node_modules/npm/lib/config/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib/node_modules/npm/lib/config//load-prefix.js
module.exports = loadPrefix

var findPrefix = require('find-npm-prefix')
var path = require('path')

function loadPrefix (cb) {
  var cli = this.list[0]

  Object.defineProperty(this, 'prefix',
    {
      set: function (prefix) {
        var g = this.get('global')
        this[g ? 'globalPrefix' : 'localPrefix'] = prefix
      }.bind(this),
      get: function () {
        var g = this.get('global')
        return g ? this.globalPrefix : this.localPrefix
      }.bind(this),
      enumerable: true
    })

  Object.defineProperty(this, 'globalPrefix',
    {
      set: function (prefix) {
        this.set('prefix', prefix)
      }.bind(this),
      get: function () {
        return path.resolve(this.get('prefix'))
      }.bind(this),
      enumerable: true
    })

  var p
  Object.defineProperty(this, 'localPrefix',
    { set: function (prefix) { p = prefix },
      get: function () { return p },
      enumerable: true })

  // try to guess at a good node_modules location.
  // If we are *explicitly* given a prefix on the cli, then
  // always use that.  otherwise, infer local prefix from cwd.
  if (Object.prototype.hasOwnProperty.call(cli, 'prefix')) {
    p = path.resolve(cli.prefix)
    process.nextTick(cb)
  } else {
    findPrefix(process.cwd()).then((found) => {
      p = found
      cb()
    }, cb)
  }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:36:29
root / root
0755
bin-links.js
0.699 KB
March 10 2021 14:36:36
root / root
0644
clear-credentials-by-uri.js
0.413 KB
March 10 2021 14:36:36
root / root
0644
cmd-list.js
2.168 KB
March 10 2021 14:36:36
root / root
0644
core.js
10.897 KB
March 10 2021 14:36:36
root / root
0644
defaults.js
11.45 KB
March 10 2021 14:36:36
root / root
0644
figgy-config.js
2.308 KB
March 10 2021 14:36:36
root / root
0644
gentle-fs.js
0.671 KB
March 10 2021 14:36:36
root / root
0644
get-credentials-by-uri.js
2.158 KB
March 10 2021 14:36:36
root / root
0644
lifecycle.js
0.831 KB
March 10 2021 14:36:36
root / root
0644
load-cafile.js
0.666 KB
March 10 2021 14:36:36
root / root
0644
load-prefix.js
1.3 KB
March 10 2021 14:36:36
root / root
0644
nerf-dart.js
0.46 KB
March 10 2021 14:36:36
root / root
0644
set-credentials-by-uri.js
1.237 KB
March 10 2021 14:36:36
root / root
0644
set-user.js
0.74 KB
March 10 2021 14:36:36
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF