=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== node-commander-4.1.1/Readme.md-92-if (program.small) console.log('- small pizza size'); node-commander-4.1.1/Readme.md:93:if (program.pizzaType) console.log(`- ${program.pizzaType}`); node-commander-4.1.1/Readme.md-94-``` ############################################## node-commander-4.1.1/Readme.md-125- node-commander-4.1.1/Readme.md:126:console.log(`cheese: ${program.cheese}`); node-commander-4.1.1/Readme.md-127-``` ############################################## node-commander-4.1.1/Readme.md-153-const sauceStr = program.sauce ? 'sauce' : 'no sauce'; node-commander-4.1.1/Readme.md:154:const cheeseStr = (program.cheese === false) ? 'no cheese' : `${program.cheese} cheese`; node-commander-4.1.1/Readme.md:155:console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); node-commander-4.1.1/Readme.md-156-``` ############################################## node-commander-4.1.1/Readme.md-180-else if (program.cheese === true) console.log('add cheese'); node-commander-4.1.1/Readme.md:181:else console.log(`add cheese type ${program.cheese}`); node-commander-4.1.1/Readme.md-182-``` ############################################## node-commander-4.1.1/Readme.md-231- node-commander-4.1.1/Readme.md:232:if (program.float !== undefined) console.log(`float: ${program.float}`); node-commander-4.1.1/Readme.md:233:if (program.integer !== undefined) console.log(`integer: ${program.integer}`); node-commander-4.1.1/Readme.md:234:if (program.verbose > 0) console.log(`verbosity: ${program.verbose}`); node-commander-4.1.1/Readme.md-235-if (program.collect.length > 0) console.log(program.collect); ############################################## node-commander-4.1.1/Readme_zh-CN.md-91-if (program.small) console.log('- small pizza size'); node-commander-4.1.1/Readme_zh-CN.md:92:if (program.pizzaType) console.log(`- ${program.pizzaType}`); node-commander-4.1.1/Readme_zh-CN.md-93- ``` ############################################## node-commander-4.1.1/Readme_zh-CN.md-124- node-commander-4.1.1/Readme_zh-CN.md:125:console.log(`cheese: ${program.cheese}`); node-commander-4.1.1/Readme_zh-CN.md-126-``` ############################################## node-commander-4.1.1/Readme_zh-CN.md-151-const sauceStr = program.sauce ? 'sauce' : 'no sauce'; node-commander-4.1.1/Readme_zh-CN.md:152:const cheeseStr = (program.cheese === false) ? 'no cheese' : `${program.cheese} cheese`; node-commander-4.1.1/Readme_zh-CN.md:153:console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); node-commander-4.1.1/Readme_zh-CN.md-154-``` ############################################## node-commander-4.1.1/Readme_zh-CN.md-178-else if (program.cheese === true) console.log('add cheese'); node-commander-4.1.1/Readme_zh-CN.md:179:else console.log(`add cheese type ${program.cheese}`); node-commander-4.1.1/Readme_zh-CN.md-180-``` ############################################## node-commander-4.1.1/Readme_zh-CN.md-228- node-commander-4.1.1/Readme_zh-CN.md:229:if (program.float !== undefined) console.log(`float: ${program.float}`); node-commander-4.1.1/Readme_zh-CN.md:230:if (program.integer !== undefined) console.log(`integer: ${program.integer}`); node-commander-4.1.1/Readme_zh-CN.md:231:if (program.verbose > 0) console.log(`verbosity: ${program.verbose}`); node-commander-4.1.1/Readme_zh-CN.md-232-if (program.collect.length > 0) console.log(program.collect); ############################################## node-commander-4.1.1/examples/options-common.js-36-if (program.small) console.log('- small pizza size'); node-commander-4.1.1/examples/options-common.js:37:if (program.pizzaType) console.log(`- ${program.pizzaType}`); ############################################## node-commander-4.1.1/examples/options-custom-processing.js-49-program.parse(process.argv); node-commander-4.1.1/examples/options-custom-processing.js:50:if (program.float !== undefined) console.log(`float: ${program.float}`); node-commander-4.1.1/examples/options-custom-processing.js:51:if (program.integer !== undefined) console.log(`integer: ${program.integer}`); node-commander-4.1.1/examples/options-custom-processing.js:52:if (program.verbose > 0) console.log(`verbosity: ${program.verbose}`); node-commander-4.1.1/examples/options-custom-processing.js-53-if (program.collect.length > 0) console.log(program.collect); ############################################## node-commander-4.1.1/examples/options-defaults.js-22- node-commander-4.1.1/examples/options-defaults.js:23:console.log(`cheese: ${program.cheese}`); ############################################## node-commander-4.1.1/examples/options-flag-or-value.js-26-else if (program.cheese === true) console.log('add cheese'); node-commander-4.1.1/examples/options-flag-or-value.js:27:else console.log(`add cheese type ${program.cheese}`); ############################################## node-commander-4.1.1/examples/options-negatable.js-28-const sauceStr = program.sauce ? 'sauce' : 'no sauce'; node-commander-4.1.1/examples/options-negatable.js:29:const cheeseStr = (program.cheese === false) ? 'no cheese' : `${program.cheese} cheese`; node-commander-4.1.1/examples/options-negatable.js:30:console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); ############################################## node-commander-4.1.1/index.js-1054-Command.prototype.missingArgument = function(name) { node-commander-4.1.1/index.js:1055: const message = `error: missing required argument '${name}'`; node-commander-4.1.1/index.js-1056- console.error(message); ############################################## node-commander-4.1.1/index.js-1070- if (flag) { node-commander-4.1.1/index.js:1071: message = `error: option '${option.flags}' argument missing, got '${flag}'`; node-commander-4.1.1/index.js-1072- } else { node-commander-4.1.1/index.js:1073: message = `error: option '${option.flags}' argument missing`; node-commander-4.1.1/index.js-1074- } ############################################## node-commander-4.1.1/index.js-1086-Command.prototype.missingMandatoryOptionValue = function(option) { node-commander-4.1.1/index.js:1087: const message = `error: required option '${option.flags}' not specified`; node-commander-4.1.1/index.js-1088- console.error(message); ############################################## node-commander-4.1.1/index.js-1100- if (this._allowUnknownOption) return; node-commander-4.1.1/index.js:1101: const message = `error: unknown option '${flag}'`; node-commander-4.1.1/index.js-1102- console.error(message); ############################################## node-commander-4.1.1/index.js-1113-Command.prototype.variadicArgNotLast = function(name) { node-commander-4.1.1/index.js:1114: const message = `error: variadic arguments must be last '${name}'`; node-commander-4.1.1/index.js-1115- console.error(message); ############################################## node-commander-4.1.1/index.js-1643- if (debugOption && debugPort !== '0') { node-commander-4.1.1/index.js:1644: result = `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`; node-commander-4.1.1/index.js-1645- } ############################################## node-commander-4.1.1/tests/command.executableSubcommand.default.test.js-8-test('when default subcommand and no command then call default', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.default.test.js:9: childProcess.exec(`node ${pm}`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.default.test.js-10- expect(stdout).toBe('default\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.default.test.js-15-test('when default subcommand and unrecognised argument then call default with argument', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.default.test.js:16: childProcess.exec(`node ${pm} an-argument`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.default.test.js-17- expect(stdout).toBe("default\n[ 'an-argument' ]\n"); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.default.test.js-22-test('when default subcommand and unrecognised option then call default with option', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.default.test.js:23: childProcess.exec(`node ${pm} --an-option`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.default.test.js-24- expect(stdout).toBe("default\n[ '--an-option' ]\n"); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-9-test('when subcommand file missing then error', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:10: childProcess.exec(`node ${pm} list`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-11- if (process.platform === 'win32') { ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-21-test('when alias subcommand file missing then error', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:22: childProcess.exec(`node ${pm} lst`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-23- if (process.platform === 'win32') { ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-33-test('when subcommand file has no suffix then lookup succeeds', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:34: childProcess.exec(`node ${pm} install`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-35- expect(stdout).toBe('install\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-40-test('when alias subcommand file has no suffix then lookup succeeds', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:41: childProcess.exec(`node ${pm} i`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-42- expect(stdout).toBe('install\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-47-test('when subcommand target executablefile has no suffix then lookup succeeds', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:48: childProcess.exec(`node ${pm} specifyInstall`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-49- expect(stdout).toBe('install\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-54-test('when subcommand file suffix .js then lookup succeeds', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:55: childProcess.exec(`node ${pm} publish`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-56- expect(stdout).toBe('publish\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-61-test('when alias subcommand file suffix .js then lookup succeeds', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:62: childProcess.exec(`node ${pm} p`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-63- expect(stdout).toBe('publish\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-68-test('when subcommand target executablefile has suffix .js then lookup succeeds', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:69: childProcess.exec(`node ${pm} specifyPublish`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-70- expect(stdout).toBe('publish\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-76- const pmlink = path.join(__dirname, 'fixtures', 'pmlink'); node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:77: childProcess.exec(`node ${pmlink} install`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-78- expect(stdout).toBe('install\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-84- const pmlink = path.join(__dirname, 'fixtures', 'another-dir', 'pm'); node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:85: childProcess.exec(`node ${pmlink} install`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-86- expect(stdout).toBe('install\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-102-test('when subsubcommand then lookup sub-sub-command', (done) => { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js:103: childProcess.exec(`node ${pm} cache clear`, function(_error, stdout, stderr) { node-commander-4.1.1/tests/command.executableSubcommand.lookup.test.js-104- expect(stdout).toBe('cache-clear\n'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js-18- 'test signal handling in executableSubcommand', (value) => { node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js:19: test(`when command killed with ${value} then executableSubcommand receieves ${value}`, (done) => { node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js-20- const pmPath = path.join(__dirname, './fixtures/pm'); ############################################## node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js-27- if (processOutput.length === 0) { node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js:28: proc.kill(`${value}`); node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js-29- } ############################################## node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js-32- proc.on('close', (code) => { node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js:33: expect(processOutput).toBe(`Listening for signal...${value}`); node-commander-4.1.1/tests/command.executableSubcommand.signals.test.js-34- done(); ############################################## node-commander-4.1.1/tests/command.exitOverride.test.js-87- expect(consoleErrorSpy).toHaveBeenCalled(); node-commander-4.1.1/tests/command.exitOverride.test.js:88: expectCommanderError(caughtErr, 1, 'commander.optionMissingArgument', `error: option '${optionFlags}' argument missing`); node-commander-4.1.1/tests/command.exitOverride.test.js-89- }); ############################################## node-commander-4.1.1/tests/command.exitOverride.test.js-227- node-commander-4.1.1/tests/command.exitOverride.test.js:228: expectCommanderError(caughtErr, 1, 'commander.missingMandatoryOptionValue', `error: required option '${optionFlags}' not specified`); node-commander-4.1.1/tests/command.exitOverride.test.js-229- }); ############################################## node-commander-4.1.1/tests/command.usage.test.js-20- node-commander-4.1.1/tests/command.usage.test.js:21: expect(helpInformation).toMatch(new RegExp(`^Usage: test ${myUsage}`)); node-commander-4.1.1/tests/command.usage.test.js-22-}); ############################################## node-commander-4.1.1/tests/command.usage.test.js-44- node-commander-4.1.1/tests/command.usage.test.js:45: expect(helpInformation).toMatch(new RegExp(`^Usage: test info ${myUsage}`)); node-commander-4.1.1/tests/command.usage.test.js-46-}); ############################################## node-commander-4.1.1/tests/options.values.test.js-24- const program = createPortProgram(); node-commander-4.1.1/tests/options.values.test.js:25: program.parse(['node', 'test', `-p${value}`]); node-commander-4.1.1/tests/options.values.test.js-26- expect(program.port).toBe(value); ############################################## node-commander-4.1.1/tests/options.values.test.js-36- const program = createPortProgram(); node-commander-4.1.1/tests/options.values.test.js:37: program.parse(['node', 'test', `--port=${value}`]); node-commander-4.1.1/tests/options.values.test.js-38- expect(program.port).toBe(value); ############################################## node-commander-4.1.1/tests/options.version.test.js-52- // Test output once as well, rest of tests just check the thrown message. node-commander-4.1.1/tests/options.version.test.js:53: expect(writeSpy).toHaveBeenCalledWith(`${myVersion}\n`); node-commander-4.1.1/tests/options.version.test.js-54- });