Sha256: 481b04e12442738b4621d07fad8ee5b87bff5bab69830458731fa91611035972

Contents?: true

Size: 324 Bytes

Versions: 127

Compression:

Stored size: 324 Bytes

Contents

// 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

Version data entries

127 entries across 53 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.27 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.26 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.26 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.25 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.25 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.24 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.24 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.23 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.23 node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.22 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.21 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.20 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.19 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.18 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.17 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.16 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.14 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.13 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.12 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js
immosquare-cleaner-0.1.11 node_modules/jsonc-eslint-parser/node_modules/semver/internal/parse-options.js