Download frontend/node_modules/semver/ranges/valid.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/ranges/valid.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/semver/ranges/valid.js
-
curl -L -o valid.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/ranges/valid.js
326 Bytes
| const Range = require('../classes/range') | |
| const validRange = (range, options) => { | |
| try { | |
| // Return '*' instead of '' so that truthiness works. | |
| // This will throw if it's invalid anyway | |
| return new Range(range, options).range || '*' | |
| } catch (er) { | |
| return null | |
| } | |
| } | |
| module.exports = validRange | |