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