PHP 8.2.30
Preview: valid.js Size: 312 B
//proc/self/root/opt/alt/alt-nodejs18/root/lib/node_modules/npm/node_modules.bundled/semver/ranges/valid.js

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

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
217 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
210 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
213 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
579 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
577 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
1.46 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
2.14 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
1.31 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
7.33 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
268 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
312 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).