Download frontend/node_modules/semver/internal/parse-options.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/internal/parse-options.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/semver/internal/parse-options.js
-
curl -L -o parse-options.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/internal/parse-options.js
338 Bytes
| // parse out just the options we care about | |
| const looseOption = Object.freeze({ loose: true }) | |
| const emptyOpts = Object.freeze({ }) | |
| const parseOptions = options => { | |
| if (!options) { | |
| return emptyOpts | |
| } | |
| if (typeof options !== 'object') { | |
| return looseOption | |
| } | |
| return options | |
| } | |
| module.exports = parseOptions | |