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

'use strict'

// parse out just the options we care about
const looseOption = Object.freeze({ loose: true })
const emptyOpts = Object.freeze({ })
const parseOptions = options => {
  if (!options) {
    return emptyOpts
  }

  if (typeof options !== 'object') {
    return looseOption
  }

  return options
}
module.exports = parseOptions

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
873 B lrw-r--r-- 2026-02-23 06:54:01
Edit Download
240 B lrw-r--r-- 2026-02-23 06:54:01
Edit Download
424 B lrw-r--r-- 2026-02-23 06:54:01
Edit Download
802 B lrw-r--r-- 2026-02-23 06:54:01
Edit Download
338 B lrw-r--r-- 2026-02-23 06:54:01
Edit Download
7.95 KB lrw-r--r-- 2026-02-23 06:54:01
Edit Download

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