=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== node-libnpx-10.2.4/README.md-22- node-libnpx-10.2.4/README.md:23:By default, `npx` will check whether `<command>` exists in `$PATH`, or in the local project binaries, and execute that. If `<command>` is not found, it will be installed prior to execution. node-libnpx-10.2.4/README.md-24- ############################################## node-libnpx-10.2.4/README.md-30- node-libnpx-10.2.4/README.md:31:* `--no-install` - If passed to `npx`, it will only try to run `<command>` if it already exists in the current path or in `$prefix/node_modules/.bin`. It won't try to install missing commands. node-libnpx-10.2.4/README.md-32- ############################################## node-libnpx-10.2.4/README.md-42- node-libnpx-10.2.4/README.md:43:* `--ignore-existing` - If this flag is set, npx will not look in `$PATH`, or in the current package's `node_modules/.bin` for an existing version before deciding whether to install. Binaries in those paths will still be available for execution, but will be shadowed by any packages requested by this install. node-libnpx-10.2.4/README.md-44- ############################################## node-libnpx-10.2.4/auto-fallback.js-9- if test ! -t 1; then node-libnpx-10.2.4/auto-fallback.js:10: >&2 echo "${Y`command not found: ${'$1'}`}" node-libnpx-10.2.4/auto-fallback.js-11- return 127 ############################################## node-libnpx-10.2.4/auto-fallback.js-13- if which npx > /dev/null; then node-libnpx-10.2.4/auto-fallback.js:14: echo "${Y`${'$1'} not found. Trying with npx...`}" >&2 node-libnpx-10.2.4/auto-fallback.js-15- else ############################################## node-libnpx-10.2.4/auto-fallback.js-34- if which npx > /dev/null node-libnpx-10.2.4/auto-fallback.js:35: echo "${Y`${'$argv[1]'} not found. Trying with npx...`}" >&2 node-libnpx-10.2.4/auto-fallback.js-36- else ############################################## node-libnpx-10.2.4/child.js-16- `npx: ${ node-libnpx-10.2.4/child.js:17: require('./y.js')`command not found: ${path.basename(cmd)}` node-libnpx-10.2.4/child.js-18- }` ############################################## node-libnpx-10.2.4/child.js-21- } else { node-libnpx-10.2.4/child.js:22: err.message = require('./y.js')`Command failed: ${cmd} ${err.message}` node-libnpx-10.2.4/child.js-23- } ############################################## node-libnpx-10.2.4/child.js-41- const err = new Error( node-libnpx-10.2.4/child.js:42: require('./y.js')`Command failed: ${cmd} ${args.join(' ')}` node-libnpx-10.2.4/child.js-43- ) ############################################## node-libnpx-10.2.4/child.js-58- return new Promise((resolve, reject) => { node-libnpx-10.2.4/child.js:59: cp.exec(`${escapeArg(cmd, true)} ${ node-libnpx-10.2.4/child.js-60- args.join(' ') ############################################## node-libnpx-10.2.4/child.js-78- .split(/\\/) node-libnpx-10.2.4/child.js:79: .map(s => s.match(/\s+/) ? `"${s}"` : s) node-libnpx-10.2.4/child.js-80- .join('\\') node-libnpx-10.2.4/child.js-81- : process.platform === 'win32' node-libnpx-10.2.4/child.js:82: ? `"${str}"` node-libnpx-10.2.4/child.js-83- : str.match(/[^-_.~/\w]/) node-libnpx-10.2.4/child.js:84: ? `'${str.replace(/'/g, "'\"'\"'")}'` node-libnpx-10.2.4/child.js-85- : str ############################################## node-libnpx-10.2.4/index.js-37- // First, we look to see if we're inside an npm project, and grab its node-libnpx-10.2.4/index.js:38: // bin path. This is exactly the same as running `$ npm bin`. node-libnpx-10.2.4/index.js-39- return localBinPath(process.cwd()).then(local => { ############################################## node-libnpx-10.2.4/index.js-41- // Local project paths take priority. Go ahead and prepend it. node-libnpx-10.2.4/index.js:42: process.env.PATH = `${local}${path.delimiter}${process.env.PATH}` node-libnpx-10.2.4/index.js-43- } ############################################## node-libnpx-10.2.4/index.js-46- // short-circuit a few things later. This bit here primarily benefits node-libnpx-10.2.4/index.js:47: // calls like `$ npx foo`, where we might just be trying to invoke node-libnpx-10.2.4/index.js-48- // a single command and use whatever is already in the path. ############################################## node-libnpx-10.2.4/index.js-51- // we take a bit of extra time to pick up npm's full lifecycle script node-libnpx-10.2.4/index.js:52: // environment (so you can use `$npm_package_xxxxx` and company). node-libnpx-10.2.4/index.js-53- // Without that flag, we just use the current env. ############################################## node-libnpx-10.2.4/index.js-89- if (bins.length < 1) { node-libnpx-10.2.4/index.js:90: throw new Error(Y()`command not found: ${argv.command}`) node-libnpx-10.2.4/index.js-91- } node-libnpx-10.2.4/index.js:92: const cmd = new RegExp(`^${argv.command}(?:\\.cmd)?$`, 'i') node-libnpx-10.2.4/index.js-93- const matching = bins.find(b => b.match(cmd)) ############################################## node-libnpx-10.2.4/index.js-96- if (err.code === 'ENOENT') { node-libnpx-10.2.4/index.js:97: throw new Error(Y()`command not found: ${argv.command}`) node-libnpx-10.2.4/index.js-98- } else { ############################################## node-libnpx-10.2.4/index.js-157- // the trouble of doing `-p`, you're rather have that one. Right? ;) node-libnpx-10.2.4/index.js:158: process.env.PATH = `${bins}${path.delimiter}${process.env.PATH}` node-libnpx-10.2.4/index.js-159- if (!info) { info = {} } ############################################## node-libnpx-10.2.4/index.js-245- if (err.exitCode) { node-libnpx-10.2.4/index.js:246: err.message = Y()`Install for ${specs} failed with code ${err.exitCode}` node-libnpx-10.2.4/index.js-247- } ############################################## node-libnpx-10.2.4/index.js-288- // space-separated node args. node-libnpx-10.2.4/index.js:289: // Example: `$ npx -n '--inspect --harmony --debug' ...` node-libnpx-10.2.4/index.js-290- cmdOpts = cmdOpts.reduce((acc, arg) => { ############################################## node-libnpx-10.2.4/index.js-326- } else { node-libnpx-10.2.4/index.js:327: throw new Error(Y()`command not found: ${target}`) node-libnpx-10.2.4/index.js-328- } ############################################## node-libnpx-10.2.4/index.js-330- } catch (e) { node-libnpx-10.2.4/index.js:331: throw new Error(Y()`command not found: ${existing}`) node-libnpx-10.2.4/index.js-332- } ############################################## node-libnpx-10.2.4/parse-args.js-28- } else if (opt === '--node-arg' || opt === '-n') { node-libnpx-10.2.4/parse-args.js:29: argv[i] = `${opt}=${argv[i + 1]}` node-libnpx-10.2.4/parse-args.js-30- argv.splice(i + 1, 1) ############################################## node-libnpx-10.2.4/parse-args.js-101- parsedCmd = { registry: true, name: argv[2], raw: argv[2] } node-libnpx-10.2.4/parse-args.js:102: pkg = [`${argv[2]}@latest`] node-libnpx-10.2.4/parse-args.js-103- } else { ############################################## node-libnpx-10.2.4/parse-args.js-155- node-libnpx-10.2.4/parse-args.js:156: console.error(Y()`Unable to guess a binary name from ${spec.raw}. Please use --package.`) node-libnpx-10.2.4/parse-args.js-157- return null ############################################## node-libnpx-10.2.4/parse-args.js-161- const usage = ` node-libnpx-10.2.4/parse-args.js:162: npx [${Y()`options`}] <${Y()`command`}>[@${Y()`version`}] [${Y()`command-arg`}]... node-libnpx-10.2.4/parse-args.js-163- node-libnpx-10.2.4/parse-args.js:164: npx [${Y()`options`}] [-p|--package <${Y()`package`}>]... <${Y()`command`}> [${Y()`command-arg`}]... node-libnpx-10.2.4/parse-args.js-165- node-libnpx-10.2.4/parse-args.js:166: npx [${Y()`options`}] -c '<${Y()`command-string`}>' node-libnpx-10.2.4/parse-args.js-167- ############################################## node-libnpx-10.2.4/parse-args.js-171- return require('yargs') node-libnpx-10.2.4/parse-args.js:172: .usage(Y()`Execute binaries from npm packages.\n${usage}`) node-libnpx-10.2.4/parse-args.js-173- .option('package', { ############################################## node-libnpx-10.2.4/parse-args.js-211- .option('ignore-existing', { node-libnpx-10.2.4/parse-args.js:212: describe: Y()`Ignores existing binaries in $PATH, or in the local project. This forces npx to do a temporary install and use the latest version.`, node-libnpx-10.2.4/parse-args.js-213- type: 'boolean' ############################################## node-libnpx-10.2.4/test/auto-fallback.js-10-test('not called with option', (t) => node-libnpx-10.2.4/test/auto-fallback.js:11: exec(`node ${NPX_BIN}`, (err, stdout, stderr) => { node-libnpx-10.2.4/test/auto-fallback.js-12- t.equal(err.code, 1) ############################################## node-libnpx-10.2.4/test/auto-fallback.js-19-test('detect: SHELL ~= fish', (t) => node-libnpx-10.2.4/test/auto-fallback.js:20: exec(`node ${NPX_BIN} --shell-auto-fallback`, { node-libnpx-10.2.4/test/auto-fallback.js-21- env: { ############################################## node-libnpx-10.2.4/test/auto-fallback.js-32-test('detect: SHELL ~= bash', (t) => node-libnpx-10.2.4/test/auto-fallback.js:33: exec(`node ${NPX_BIN} --shell-auto-fallback`, { node-libnpx-10.2.4/test/auto-fallback.js-34- env: { ############################################## node-libnpx-10.2.4/test/auto-fallback.js-45-test('detect: SHELL ~= zsh', (t) => node-libnpx-10.2.4/test/auto-fallback.js:46: exec(`node ${NPX_BIN} --shell-auto-fallback`, { node-libnpx-10.2.4/test/auto-fallback.js-47- env: { ############################################## node-libnpx-10.2.4/test/auto-fallback.js-58-test('detect: no SHELL', (t) => node-libnpx-10.2.4/test/auto-fallback.js:59: exec(`node ${NPX_BIN} --shell-auto-fallback`, { node-libnpx-10.2.4/test/auto-fallback.js-60- env: {} ############################################## node-libnpx-10.2.4/test/auto-fallback.js-69-test('detect: SHELL ~= unsupported', (t) => node-libnpx-10.2.4/test/auto-fallback.js:70: exec(`node ${NPX_BIN} --shell-auto-fallback`, { node-libnpx-10.2.4/test/auto-fallback.js-71- env: { ############################################## node-libnpx-10.2.4/test/auto-fallback.js-82-test('given: fish', (t) => node-libnpx-10.2.4/test/auto-fallback.js:83: exec(`node ${NPX_BIN} --shell-auto-fallback fish`, (err, stdout, stderr) => { node-libnpx-10.2.4/test/auto-fallback.js-84- if (err) { throw err } ############################################## node-libnpx-10.2.4/test/auto-fallback.js-91-test('given: bash', (t) => node-libnpx-10.2.4/test/auto-fallback.js:92: exec(`node ${NPX_BIN} --shell-auto-fallback bash`, (err, stdout, stderr) => { node-libnpx-10.2.4/test/auto-fallback.js-93- if (err) { throw err } ############################################## node-libnpx-10.2.4/test/auto-fallback.js-100-test('given: zsh', (t) => node-libnpx-10.2.4/test/auto-fallback.js:101: exec(`node ${NPX_BIN} --shell-auto-fallback zsh`, (err, stdout, stderr) => { node-libnpx-10.2.4/test/auto-fallback.js-102- if (err) { throw err } ############################################## node-libnpx-10.2.4/test/auto-fallback.js-109-test('given: unsupported', (t) => node-libnpx-10.2.4/test/auto-fallback.js:110: exec(`node ${NPX_BIN} --shell-auto-fallback nope`, (err, stdout, stderr) => { node-libnpx-10.2.4/test/auto-fallback.js-111- t.equal(err.code, 1) ############################################## node-libnpx-10.2.4/test/index.js-187- exec (cmd, args) { node-libnpx-10.2.4/test/index.js:188: return Promise.resolve(`${cmd} ${args.join(' ')}\n`) node-libnpx-10.2.4/test/index.js-189- }, node-libnpx-10.2.4/test/index.js-190- escapeArg (arg, asPath) { node-libnpx-10.2.4/test/index.js:191: return `${arg}-escaped-as-path-${!!asPath}` node-libnpx-10.2.4/test/index.js-192- } ############################################## node-libnpx-10.2.4/test/index.js-195- return getCache({npm: NPM_PATH}).then(cache => { node-libnpx-10.2.4/test/index.js:196: t.equal(cache, `${process.argv[0]} ${NPM_PATH}-escaped-as-path-false config get cache --parseable`, 'requests cache from npm') node-libnpx-10.2.4/test/index.js-197- return getCache({npm: NPM_PATH, userconfig}) ############################################## node-libnpx-10.2.4/update-notifier/index.js-47- const ConfigStore = configstore(); node-libnpx-10.2.4/update-notifier/index.js:48: this.config = new ConfigStore(`update-notifier-${this.packageName}`, { node-libnpx-10.2.4/update-notifier/index.js-49- optOut: false, ############################################## node-libnpx-10.2.4/update-notifier/readme.md-69-if (notifier.update) { node-libnpx-10.2.4/update-notifier/readme.md:70: console.log(`Update available: ${notifier.update.latest}`); node-libnpx-10.2.4/update-notifier/readme.md-71-} ############################################## node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js-216- exec (cmd, args) { node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js:217: return Promise.resolve(`${cmd} ${args.join(' ')}\n`) node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js-218- }, node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js-219- escapeArg (arg, asPath) { node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js:220: return `${arg}-escaped-as-path-${!!asPath}` node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js-221- } ############################################## node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js-224- return getCache({npm: NPM_PATH}).then(cache => { node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js:225: t.equal(cache, `${process.argv[0]} ${NPM_PATH}-escaped-as-path-false config get cache --parseable`, 'requests cache from npm') node-libnpx-10.2.4/.pc/disable-which-test.patch/test/index.js-226- return getCache({npm: NPM_PATH, userconfig}) ############################################## node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js-218- exec (cmd, args) { node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js:219: return Promise.resolve(`${cmd} ${args.join(' ')}\n`) node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js-220- }, node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js-221- escapeArg (arg, asPath) { node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js:222: return `${arg}-escaped-as-path-${!!asPath}` node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js-223- } ############################################## node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js-226- return getCache({npm: NPM_PATH}).then(cache => { node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js:227: t.equal(cache, `${process.argv[0]} ${NPM_PATH}-escaped-as-path-false config get cache --parseable`, 'requests cache from npm') node-libnpx-10.2.4/.pc/disable-dotenv-test.patch/test/index.js-228- return getCache({npm: NPM_PATH, userconfig}) ############################################## node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js-220- exec (cmd, args) { node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js:221: return Promise.resolve(`${cmd} ${args.join(' ')}\n`) node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js-222- }, node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js-223- escapeArg (arg, asPath) { node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js:224: return `${arg}-escaped-as-path-${!!asPath}` node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js-225- } ############################################## node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js-228- return getCache({npm: NPM_PATH}).then(cache => { node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js:229: t.equal(cache, `${process.argv[0]} ${NPM_PATH}-escaped-as-path-false config get cache --parseable`, 'requests cache from npm') node-libnpx-10.2.4/.pc/disable-network-test.patch/test/index.js-230- return getCache({npm: NPM_PATH, userconfig}) ############################################## node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js-187- exec (cmd, args) { node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js:188: return Promise.resolve(`${cmd} ${args.join(' ')}\n`) node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js-189- }, node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js-190- escapeArg (arg, asPath) { node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js:191: return `${arg}-escaped-as-path-${!!asPath}` node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js-192- } ############################################## node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js-195- return getCache({npm: NPM_PATH}).then(cache => { node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js:196: t.equal(cache, `${process.argv[0]} ${NPM_PATH}-escaped-as-path-false config get cache --parseable`, 'requests cache from npm') node-libnpx-10.2.4/.pc/fix-npm-path.diff/test/index.js-197- return getCache({npm: NPM_PATH, userconfig})