SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > yargs


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/node_modules/npm/node_modules/yargs

NameTypeSizeLast ModifiedActions
lib Directory - -
locales Directory - -
node_modules Directory - -
CHANGELOG.md File 92146 bytes March 10 2021 14:36:38.
LICENSE File 1199 bytes March 10 2021 14:36:38.
README.md File 3837 bytes March 10 2021 14:36:38.
index.js File 1020 bytes March 10 2021 14:36:38.
package.json File 2665 bytes March 10 2021 14:36:38.
yargs.js File 39308 bytes March 10 2021 14:36:38.

Reading File: //lib/node_modules/npm/node_modules/yargs/index.js

'use strict'
// classic singleton yargs API, to use yargs
// without running as a singleton do:
// require('yargs/yargs')(process.argv.slice(2))
const yargs = require('./yargs')

Argv(process.argv.slice(2))

module.exports = Argv

function Argv (processArgs, cwd) {
  const argv = yargs(processArgs, cwd, require)
  singletonify(argv)
  return argv
}

/*  Hack an instance of Argv with process.argv into Argv
    so people can do
    require('yargs')(['--beeble=1','-z','zizzle']).argv
    to parse a list of args and
    require('yargs').argv
    to get a parsed version of process.argv.
*/
function singletonify (inst) {
  Object.keys(inst).forEach((key) => {
    if (key === 'argv') {
      Argv.__defineGetter__(key, inst.__lookupGetter__(key))
    } else if (typeof inst[key] === 'function') {
      Argv[key] = inst[key].bind(inst)
    } else {
      Argv.__defineGetter__('$0', () => {
        return inst.$0
      })
      Argv.__defineGetter__('parsed', () => {
        return inst.parsed
      })
    }
  })
}

SILENT KILLER Tool