$45 GRAYBYTE WORDPRESS FILE MANAGER $45

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/node_modules/npm/lib/config/

HOME
Current File : /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)
  }
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
bin-links.js
0.699 KB
10 Mar 2021 9.36 PM
root / root
0644
clear-credentials-by-uri.js
0.413 KB
10 Mar 2021 9.36 PM
root / root
0644
cmd-list.js
2.168 KB
10 Mar 2021 9.36 PM
root / root
0644
core.js
10.897 KB
10 Mar 2021 9.36 PM
root / root
0644
defaults.js
11.45 KB
10 Mar 2021 9.36 PM
root / root
0644
figgy-config.js
2.308 KB
10 Mar 2021 9.36 PM
root / root
0644
gentle-fs.js
0.671 KB
10 Mar 2021 9.36 PM
root / root
0644
get-credentials-by-uri.js
2.158 KB
10 Mar 2021 9.36 PM
root / root
0644
lifecycle.js
0.831 KB
10 Mar 2021 9.36 PM
root / root
0644
load-cafile.js
0.666 KB
10 Mar 2021 9.36 PM
root / root
0644
load-prefix.js
1.3 KB
10 Mar 2021 9.36 PM
root / root
0644
nerf-dart.js
0.46 KB
10 Mar 2021 9.36 PM
root / root
0644
set-credentials-by-uri.js
1.237 KB
10 Mar 2021 9.36 PM
root / root
0644
set-user.js
0.74 KB
10 Mar 2021 9.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF