File Explorer

/proc/self/root/proc/1/task/1/root/node24/lib/node_modules/npm/node_modules/semver/ranges

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

valid.js326 B · 14 lines
'use strict' 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