Spaces:
No application file
No application file
Download node_modules/has-flag/index.js from Thrisha04/chatApplication: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/Thrisha04/chatApplication/resolve/main/node_modules/has-flag/index.js
- Command line
-
hf download hf://spaces/Thrisha04/chatApplication/node_modules/has-flag/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Thrisha04/chatApplication/resolve/main/node_modules/has-flag/index.js
320 Bytes
| ; | |
| module.exports = (flag, argv) => { | |
| argv = argv || process.argv; | |
| const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); | |
| const pos = argv.indexOf(prefix + flag); | |
| const terminatorPos = argv.indexOf('--'); | |
| return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); | |
| }; | |