Download node_modules/yargs/build/lib/utils/process-argv.js from xxsxx/cld: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/yargs/build/lib/utils/process-argv.js
- Command line
-
hf download hf://spaces/xxsxx/cld/node_modules/yargs/build/lib/utils/process-argv.js
-
curl -L -o process-argv.js https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/yargs/build/lib/utils/process-argv.js
436 Bytes
| function getProcessArgvBinIndex() { | |
| if (isBundledElectronApp()) | |
| return 0; | |
| return 1; | |
| } | |
| function isBundledElectronApp() { | |
| return isElectronApp() && !process.defaultApp; | |
| } | |
| function isElectronApp() { | |
| return !!process.versions.electron; | |
| } | |
| export function hideBin(argv) { | |
| return argv.slice(getProcessArgvBinIndex() + 1); | |
| } | |
| export function getProcessArgvBin() { | |
| return process.argv[getProcessArgvBinIndex()]; | |
| } | |