Download frontend/node_modules/semver/functions/parse.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/functions/parse.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/semver/functions/parse.js
-
curl -L -o parse.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/functions/parse.js
331 Bytes
| const SemVer = require('../classes/semver') | |
| const parse = (version, options, throwErrors = false) => { | |
| if (version instanceof SemVer) { | |
| return version | |
| } | |
| try { | |
| return new SemVer(version, options) | |
| } catch (er) { | |
| if (!throwErrors) { | |
| return null | |
| } | |
| throw er | |
| } | |
| } | |
| module.exports = parse | |