initialize

This commit is contained in:
2025-05-14 19:27:36 +02:00
commit 28ced1c764
870 changed files with 92291 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
'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