PHP 8.2.30
Preview: parse-options.js Size: 383 B
/opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/semver/internal/parse-options.js

// parse out just the options we care about so we always get a consistent
// obj with keys in a consistent order.
const opts = ['includePrerelease', 'loose', 'rtl']
const parseOptions = options =>
  !options ? {}
  : typeof options !== 'object' ? { loose: true }
  : opts.filter(k => options[k]).reduce((o, k) => {
    o[k] = true
    return o
  }, {})
module.exports = parseOptions

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
467 B lrw-r--r-- 2023-12-06 18:07:52
Edit Download
226 B lrw-r--r-- 2023-12-06 18:07:52
Edit Download
410 B lrw-r--r-- 2023-12-06 18:07:52
Edit Download
383 B lrw-r--r-- 2023-12-06 18:07:52
Edit Download
6.52 KB lrw-r--r-- 2023-12-06 18:07:52
Edit Download

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