=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== node-yargs-15.3.1+repack/README.md-77- }, (argv) => { node-yargs-15.3.1+repack/README.md:78: if (argv.verbose) console.info(`start server on :${argv.port}`) node-yargs-15.3.1+repack/README.md-79- serve(argv.port) ############################################## node-yargs-15.3.1+repack/docs/advanced.md-10- node-yargs-15.3.1+repack/docs/advanced.md:11:To specify a default command use the string `*` or `$0`. A default command node-yargs-15.3.1+repack/docs/advanced.md-12-will be run if the positional arguments provided match no known ############################################## node-yargs-15.3.1+repack/docs/advanced.md-136- handler: (argv) => { node-yargs-15.3.1+repack/docs/advanced.md:137: console.log(`setting ${argv.key} to ${argv.value}`) node-yargs-15.3.1+repack/docs/advanced.md-138- } ############################################## node-yargs-15.3.1+repack/docs/api.md-47- node-yargs-15.3.1+repack/docs/api.md:48:The script name or node command is available at `argv.$0` similarly to how `$0` node-yargs-15.3.1+repack/docs/api.md-49-works in bash or perl. ############################################## node-yargs-15.3.1+repack/docs/api.md-555- handler: (argv) => { node-yargs-15.3.1+repack/docs/api.md:556: console.log(`setting ${argv.key} to ${argv.value}`) node-yargs-15.3.1+repack/docs/api.md-557- } ############################################## node-yargs-15.3.1+repack/docs/api.md-576- node-yargs-15.3.1+repack/docs/api.md:577:_Note: in `minMsg` and `maxMsg`, every occurrence of `$0` will be replaced node-yargs-15.3.1+repack/docs/api.md:578:with the observed value, and every instance of `$1` will be replaced with the node-yargs-15.3.1+repack/docs/api.md-579-expected value._ ############################################## node-yargs-15.3.1+repack/docs/api.md-711-Give some example invocations of your program. Inside `cmd`, the string node-yargs-15.3.1+repack/docs/api.md:712:`$0` will get interpolated to the current script name or node command for the node-yargs-15.3.1+repack/docs/api.md:713:present script similar to how `$0` works in bash or perl. node-yargs-15.3.1+repack/docs/api.md-714-Examples will be printed out as part of the help message. ############################################## node-yargs-15.3.1+repack/docs/api.md-1004- function(argv) { node-yargs-15.3.1+repack/docs/api.md:1005: console.info(`we know the user's home directory is ${argv.home}`) node-yargs-15.3.1+repack/docs/api.md-1006- } ############################################## node-yargs-15.3.1+repack/docs/api.md-1024- node-yargs-15.3.1+repack/docs/api.md:1025:`{ _: [], token: '-my-token', '$0': 'node test' }` node-yargs-15.3.1+repack/docs/api.md-1026- ############################################## node-yargs-15.3.1+repack/docs/api.md-1496-Set a usage message to show which commands to use. Inside `message`, the string node-yargs-15.3.1+repack/docs/api.md:1497:`$0` will get interpolated to the current script name or node command for the node-yargs-15.3.1+repack/docs/api.md:1498:present script similar to how `$0` works in bash or perl. node-yargs-15.3.1+repack/docs/api.md-1499- ############################################## node-yargs-15.3.1+repack/lib/apply-extends.js-10- if (previouslyVisitedConfigs.indexOf(cfgPath) > -1) { node-yargs-15.3.1+repack/lib/apply-extends.js:11: throw new YError(`Circular extended configurations: '${cfgPath}'.`) node-yargs-15.3.1+repack/lib/apply-extends.js-12- } ############################################## node-yargs-15.3.1+repack/lib/argsert.js-19- } else { node-yargs-15.3.1+repack/lib/argsert.js:20: parsed = command.parseCommand(`cmd ${expected}`) node-yargs-15.3.1+repack/lib/argsert.js-21- } ############################################## node-yargs-15.3.1+repack/lib/argsert.js-27- if (length < parsed.demanded.length) { node-yargs-15.3.1+repack/lib/argsert.js:28: throw new YError(`Not enough arguments provided. Expected ${parsed.demanded.length} but received ${args.length}.`) node-yargs-15.3.1+repack/lib/argsert.js-29- } ############################################## node-yargs-15.3.1+repack/lib/argsert.js-32- if (length > totalCommands) { node-yargs-15.3.1+repack/lib/argsert.js:33: throw new YError(`Too many arguments provided. Expected max ${totalCommands} but received ${length}.`) node-yargs-15.3.1+repack/lib/argsert.js-34- } ############################################## node-yargs-15.3.1+repack/lib/argsert.js-66-function argumentTypeError (observedType, allowedTypes, position, optional) { node-yargs-15.3.1+repack/lib/argsert.js:67: throw new YError(`Invalid ${positionName[position] || 'manyith'} argument. Expected ${allowedTypes.join(' or ')} but received ${observedType}.`) node-yargs-15.3.1+repack/lib/argsert.js-68-} ############################################## node-yargs-15.3.1+repack/lib/command.js-118- const mod = require('which-module')(obj) node-yargs-15.3.1+repack/lib/command.js:119: if (!mod) throw new Error(`No command name given for module: ${inspect(obj)}`) node-yargs-15.3.1+repack/lib/command.js-120- return commandFromFilename(mod.filename) ############################################## node-yargs-15.3.1+repack/lib/command.js-287- pc.push(c) node-yargs-15.3.1+repack/lib/command.js:288: return `$0 ${pc.join(' ')}` node-yargs-15.3.1+repack/lib/command.js-289- } ############################################## node-yargs-15.3.1+repack/lib/command.js-361- if (options.configuration['unknown-options-as-args']) options.key[key] = true node-yargs-15.3.1+repack/lib/command.js:362: unparsed.push(`--${key}`) node-yargs-15.3.1+repack/lib/command.js-363- unparsed.push(value) ############################################## node-yargs-15.3.1+repack/lib/completion.js-83- let keyAndAliases = [key].concat(aliases[key] || []) node-yargs-15.3.1+repack/lib/completion.js:84: if (negable) keyAndAliases = keyAndAliases.concat(keyAndAliases.map(key => `no-${key}`)) node-yargs-15.3.1+repack/lib/completion.js-85- node-yargs-15.3.1+repack/lib/completion.js-86- function completeOptionKey (key) { node-yargs-15.3.1+repack/lib/completion.js:87: const notInArgs = keyAndAliases.every(val => args.indexOf(`--${val}`) === -1) node-yargs-15.3.1+repack/lib/completion.js-88- if (notInArgs) { ############################################## node-yargs-15.3.1+repack/lib/completion.js-95- const desc = descs[key] || '' node-yargs-15.3.1+repack/lib/completion.js:96: completions.push(dashes + `${key.replace(/:/g, '\\:')}:${desc.replace('__yargsString__:', '')}`) node-yargs-15.3.1+repack/lib/completion.js-97- } ############################################## node-yargs-15.3.1+repack/lib/completion.js-101- completeOptionKey(key) node-yargs-15.3.1+repack/lib/completion.js:102: if (negable && !!options.default[key]) completeOptionKey(`no-${key}`) node-yargs-15.3.1+repack/lib/completion.js-103- }) ############################################## node-yargs-15.3.1+repack/lib/completion.js-115- // add ./to applications not yet installed as bin. node-yargs-15.3.1+repack/lib/completion.js:116: if ($0.match(/\.js$/)) $0 = `./${$0}` node-yargs-15.3.1+repack/lib/completion.js-117- ############################################## node-yargs-15.3.1+repack/lib/usage.js-183- usages.forEach((usage) => { node-yargs-15.3.1+repack/lib/usage.js:184: ui.div(`${usage[0].replace(/\$0/g, base$0)}`) node-yargs-15.3.1+repack/lib/usage.js-185- if (usage[1]) { node-yargs-15.3.1+repack/lib/usage.js:186: ui.div({ text: `${usage[1]}`, padding: [1, 0, 0, 0] }) node-yargs-15.3.1+repack/lib/usage.js-187- } ############################################## node-yargs-15.3.1+repack/lib/usage.js-193- if (demandedCommands._) { node-yargs-15.3.1+repack/lib/usage.js:194: u = `${base$0} <${__('command')}>\n` node-yargs-15.3.1+repack/lib/usage.js-195- } else { node-yargs-15.3.1+repack/lib/usage.js:196: u = `${base$0} [${__('command')}]\n` node-yargs-15.3.1+repack/lib/usage.js-197- } node-yargs-15.3.1+repack/lib/usage.js:198: ui.div(`${u}`) node-yargs-15.3.1+repack/lib/usage.js-199- } ############################################## node-yargs-15.3.1+repack/lib/usage.js-207- const context = yargs.getContext() node-yargs-15.3.1+repack/lib/usage.js:208: const parentCommands = context.commands.length ? `${context.commands.join(' ')} ` : '' node-yargs-15.3.1+repack/lib/usage.js-209- ############################################## node-yargs-15.3.1+repack/lib/usage.js-214- commands.forEach((command) => { node-yargs-15.3.1+repack/lib/usage.js:215: const commandString = `${base$0} ${parentCommands}${command[0].replace(/^\$0 ?/, '')}` // drop $0 from default commands. node-yargs-15.3.1+repack/lib/usage.js-216- ui.span( ############################################## node-yargs-15.3.1+repack/lib/usage.js-219- padding: [0, 2, 0, 2], node-yargs-15.3.1+repack/lib/usage.js:220: width: maxWidth(commands, theWrap, `${base$0}${parentCommands}`) + 4 node-yargs-15.3.1+repack/lib/usage.js-221- }, ############################################## node-yargs-15.3.1+repack/lib/usage.js-224- const hints = [] node-yargs-15.3.1+repack/lib/usage.js:225: if (command[2]) hints.push(`[${__('default')}]`) node-yargs-15.3.1+repack/lib/usage.js-226- if (command[3] && command[3].length) { node-yargs-15.3.1+repack/lib/usage.js:227: hints.push(`[${__('aliases:')} ${command[3].join(', ')}]`) node-yargs-15.3.1+repack/lib/usage.js-228- } ############################################## node-yargs-15.3.1+repack/lib/usage.js-297- node-yargs-15.3.1+repack/lib/usage.js:298: if (~options.boolean.indexOf(key)) type = `[${__('boolean')}]` node-yargs-15.3.1+repack/lib/usage.js:299: if (~options.count.indexOf(key)) type = `[${__('count')}]` node-yargs-15.3.1+repack/lib/usage.js:300: if (~options.string.indexOf(key)) type = `[${__('string')}]` node-yargs-15.3.1+repack/lib/usage.js:301: if (~options.normalize.indexOf(key)) type = `[${__('string')}]` node-yargs-15.3.1+repack/lib/usage.js:302: if (~options.array.indexOf(key)) type = `[${__('array')}]` node-yargs-15.3.1+repack/lib/usage.js:303: if (~options.number.indexOf(key)) type = `[${__('number')}]` node-yargs-15.3.1+repack/lib/usage.js-304- ############################################## node-yargs-15.3.1+repack/lib/usage.js-307- typeof deprecatedOptions[key] === 'string' node-yargs-15.3.1+repack/lib/usage.js:308: ? `[${__('deprecated: %s', deprecatedOptions[key])}]` node-yargs-15.3.1+repack/lib/usage.js:309: : `[${__('deprecated')}]` node-yargs-15.3.1+repack/lib/usage.js-310- ) : null, node-yargs-15.3.1+repack/lib/usage.js-311- type, node-yargs-15.3.1+repack/lib/usage.js:312: (key in demandedOptions) ? `[${__('required')}]` : null, node-yargs-15.3.1+repack/lib/usage.js-313- options.choices && options.choices[key] ? `[${__('choices:')} ${ ############################################## node-yargs-15.3.1+repack/lib/usage.js-364- const e = epilogs.map(epilog => epilog.replace(/\$0/g, base$0)).join('\n') node-yargs-15.3.1+repack/lib/usage.js:365: ui.div(`${e}\n`) node-yargs-15.3.1+repack/lib/usage.js-366- } ############################################## node-yargs-15.3.1+repack/lib/usage.js-384- width = Math.max( node-yargs-15.3.1+repack/lib/usage.js:385: stringWidth(modifier ? `${modifier} ${v[0]}` : v[0]), node-yargs-15.3.1+repack/lib/usage.js-386- width ############################################## node-yargs-15.3.1+repack/lib/usage.js-485- function defaultString (value, defaultDescription) { node-yargs-15.3.1+repack/lib/usage.js:486: let string = `[${__('default:')} ` node-yargs-15.3.1+repack/lib/usage.js-487- ############################################## node-yargs-15.3.1+repack/lib/usage.js-494- case 'string': node-yargs-15.3.1+repack/lib/usage.js:495: string += `"${value}"` node-yargs-15.3.1+repack/lib/usage.js-496- break ############################################## node-yargs-15.3.1+repack/lib/usage.js-504- node-yargs-15.3.1+repack/lib/usage.js:505: return `${string}]` node-yargs-15.3.1+repack/lib/usage.js-506- } ############################################## node-yargs-15.3.1+repack/lib/validation.js-95- node-yargs-15.3.1+repack/lib/validation.js:96: const customMsg = customMsgs.length ? `\n${customMsgs.join('\n')}` : '' node-yargs-15.3.1+repack/lib/validation.js-97- ############################################## node-yargs-15.3.1+repack/lib/validation.js-301- if (key && !value) { node-yargs-15.3.1+repack/lib/validation.js:302: implyFail.push(` ${origKey} -> ${origValue}`) node-yargs-15.3.1+repack/lib/validation.js-303- } ############################################## node-yargs-15.3.1+repack/lib/validation.js-307- if (implyFail.length) { node-yargs-15.3.1+repack/lib/validation.js:308: let msg = `${__('Implications failed:')}\n` node-yargs-15.3.1+repack/lib/validation.js-309- ############################################## node-yargs-15.3.1+repack/test/command.js-1529- y._getLoggerInstance().error = (out) => { node-yargs-15.3.1+repack/test/command.js:1530: if (out) errorLog += `${out}\n` node-yargs-15.3.1+repack/test/command.js-1531- } ############################################## node-yargs-15.3.1+repack/test/integration.js-51- if (code) { node-yargs-15.3.1+repack/test/integration.js:52: done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-53- return ############################################## node-yargs-15.3.1+repack/test/integration.js-70- if (code) { node-yargs-15.3.1+repack/test/integration.js:71: done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-72- return ############################################## node-yargs-15.3.1+repack/test/integration.js-83- if (code) { node-yargs-15.3.1+repack/test/integration.js:84: done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-85- return ############################################## node-yargs-15.3.1+repack/test/integration.js-98- if (code) { node-yargs-15.3.1+repack/test/integration.js:99: done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-100- return ############################################## node-yargs-15.3.1+repack/test/integration.js-129- if (code) { node-yargs-15.3.1+repack/test/integration.js:130: return done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-131- } ############################################## node-yargs-15.3.1+repack/test/integration.js-140- if (code) { node-yargs-15.3.1+repack/test/integration.js:141: return done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-142- } ############################################## node-yargs-15.3.1+repack/test/integration.js-153- if (code) { node-yargs-15.3.1+repack/test/integration.js:154: return done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-155- } ############################################## node-yargs-15.3.1+repack/test/integration.js-164- if (code) { node-yargs-15.3.1+repack/test/integration.js:165: return done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-166- } ############################################## node-yargs-15.3.1+repack/test/integration.js-175- if (code) { node-yargs-15.3.1+repack/test/integration.js:176: return done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-177- } ############################################## node-yargs-15.3.1+repack/test/integration.js-186- if (code) { node-yargs-15.3.1+repack/test/integration.js:187: return done(new Error(`cmd exited with code ${code}`)) node-yargs-15.3.1+repack/test/integration.js-188- } ############################################## node-yargs-15.3.1+repack/test/integration.js-226- if (code) { node-yargs-15.3.1+repack/test/integration.js:227: done(new Error(`cmd ${cmd} ${args} exited with code ${code}\n${stdout}\n${stderr}`)) node-yargs-15.3.1+repack/test/integration.js-228- return ############################################## node-yargs-15.3.1+repack/test/usage.js-508- ' --version Show version number [boolean]\n' + node-yargs-15.3.1+repack/test/usage.js:509: `Argument check failed: ${checker.toString()}` node-yargs-15.3.1+repack/test/usage.js-510- ) ############################################## node-yargs-15.3.1+repack/test/usage.js-1656- ' --version Show version number [boolean]', node-yargs-15.3.1+repack/test/usage.js:1657: ` -f, --file ${noColorAddedDescr} [string] [required]`, node-yargs-15.3.1+repack/test/usage.js-1658- ' -h, --help Show help [boolean]' ############################################## node-yargs-15.3.1+repack/test/usage.js-1679- ' --version Show version number [boolean]', node-yargs-15.3.1+repack/test/usage.js:1680: ` -f, --file ${yellowDescription} [string] [required]`, node-yargs-15.3.1+repack/test/usage.js-1681- ' -h, --help Show help [boolean]' ############################################## node-yargs-15.3.1+repack/test/yargs.js-293- .choices('foo', ['bar', 'baz']) node-yargs-15.3.1+repack/test/yargs.js:294: .coerce('foo', foo => `${foo}bar`) node-yargs-15.3.1+repack/test/yargs.js-295- .implies('foo', 'snuh') ############################################## node-yargs-15.3.1+repack/yargs.js-69- self.$0 = process.env._.replace( node-yargs-15.3.1+repack/yargs.js:70: `${path.dirname(process.execPath)}/`, '' node-yargs-15.3.1+repack/yargs.js-71- ) ############################################## node-yargs-15.3.1+repack/yargs.js-1192- // e.g., loading in a list of commands from an API. node-yargs-15.3.1+repack/yargs.js:1193: const completionArgs = args.slice(args.indexOf(`--${completion.completionKey}`) + 1) node-yargs-15.3.1+repack/yargs.js-1194- completion.getCompletion(completionArgs, (completions) => { ############################################## node-yargs-15.3.1+repack/types-yargs/index.d.ts-39- * The type parameter `T` is the expected shape of the parsed options. node-yargs-15.3.1+repack/types-yargs/index.d.ts:40: * `Arguments<T>` is those options plus `_` and `$0`, and an indexer falling node-yargs-15.3.1+repack/types-yargs/index.d.ts-41- * back to `unknown` for unknown options. ############################################## node-yargs-15.3.1+repack/types-yargs/index.d.ts-66- * node-yargs-15.3.1+repack/types-yargs/index.d.ts:67: * The script name or node command is available at `argv.$0` similarly to how `$0` works in bash or perl. node-yargs-15.3.1+repack/types-yargs/index.d.ts-68- * ############################################## node-yargs-15.3.1+repack/types-yargs/index.d.ts-315- * Give some example invocations of your program. node-yargs-15.3.1+repack/types-yargs/index.d.ts:316: * Inside `cmd`, the string `$0` will get interpolated to the current script name or node command for the present script similar to how `$0` works in bash or perl. node-yargs-15.3.1+repack/types-yargs/index.d.ts-317- * Examples will be printed out as part of the help message. ############################################## node-yargs-15.3.1+repack/types-yargs/index.d.ts-597- * Set a usage message to show which commands to use. node-yargs-15.3.1+repack/types-yargs/index.d.ts:598: * Inside `message`, the string `$0` will get interpolated to the current script name or node command for the present script similar to how `$0` works in bash or perl. node-yargs-15.3.1+repack/types-yargs/index.d.ts-599- * ############################################## node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/yargs.js-293- .choices('foo', ['bar', 'baz']) node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/yargs.js:294: .coerce('foo', foo => `${foo}bar`) node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/yargs.js-295- .implies('foo', 'snuh') ############################################## node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js-508- ' --version Show version number [boolean]\n' + node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js:509: `Argument check failed: ${checker.toString()}` node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js-510- ) ############################################## node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js-1654- ' --version Show version number [boolean]', node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js:1655: ` -f, --file ${noColorAddedDescr} [string] [required]`, node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js-1656- ' -h, --help Show help [boolean]' ############################################## node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js-1677- ' --version Show version number [boolean]', node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js:1678: ` -f, --file ${yellowDescription} [string] [required]`, node-yargs-15.3.1+repack/.pc/disable-failing-window-size-tests.patch/test/usage.js-1679- ' -h, --help Show help [boolean]' ############################################## node-yargs-15.3.1+repack/.pc/disable-yargs-test-extends.patch/test/yargs.js-293- .choices('foo', ['bar', 'baz']) node-yargs-15.3.1+repack/.pc/disable-yargs-test-extends.patch/test/yargs.js:294: .coerce('foo', foo => `${foo}bar`) node-yargs-15.3.1+repack/.pc/disable-yargs-test-extends.patch/test/yargs.js-295- .implies('foo', 'snuh')