![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/bin/lib/ |
Upload File : |
const options = module.exports = { path: undefined, cache: `${process.env.HOME}/.npm/_cacache`, _: [], } for (const arg of process.argv.slice(2)) { if (/^--add=/.test(arg)) { options.add = options.add || [] options.add.push(arg.substr('--add='.length)) } else if (/^--rm=/.test(arg)) { options.rm = options.rm || [] options.rm.push(arg.substr('--rm='.length)) } else if (arg === '--global') { options.global = true } else if (arg === '--global-style') { options.globalStyle = true } else if (arg === '--prefer-dedupe') { options.preferDedupe = true } else if (arg === '--legacy-peer-deps') { options.legacyPeerDeps = true } else if (arg === '--force') { options.force = true } else if (arg === '--update-all') { options.update = options.update || {} options.update.all = true } else if (/^--update=/.test(arg)) { options.update = options.update || {} options.update.names = options.update.names || [] options.update.names.push(arg.substr('--update='.length)) } else if (/^--omit=/.test(arg)) { options.omit = options.omit || [] options.omit.push(arg.substr('--omit='.length)) } else if (/^--before=/.test(arg)) { options.before = new Date(arg.substr('--before='.length)) } else if (/^-w.+/.test(arg)) { options.workspaces = options.workspaces || [] options.workspaces.push(arg.replace(/^-w/, '')) } else if (/^--workspace=/.test(arg)) { options.workspaces = options.workspaces || [] options.workspaces.push(arg.replace(/^--workspace=/, '')) } else if (/^--[^=]+=/.test(arg)) { const [key, ...v] = arg.replace(/^--/, '').split('=') const val = v.join('=') options[key] = val === 'false' ? false : val === 'true' ? true : val } else if (/^--.+/.test(arg)) { options[arg.replace(/^--/, '')] = true } else if (options.path === undefined) { options.path = arg } else { options._.push(arg) } } if (options.path === undefined) { options.path = '.' } console.error(options)