MCPcopy
hub / github.com/npm/node-semver / parseOptions

Function parseOptions

internal/parse-options.js:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4const looseOption = Object.freeze({ loose: true })
5const emptyOpts = Object.freeze({ })
6const parseOptions = options => {
7 if (!options) {
8 return emptyOpts
9 }
10
11 if (typeof options !== 'object') {
12 return looseOption
13 }
14
15 return options
16}
17module.exports = parseOptions

Callers 7

constructorMethod · 0.85
intersectsMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
parse-options.jsFile · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected