better-sqlite3-multiple-ciphers
Version:
better-sqlite3 with multiple-cipher encryption support
13 lines (10 loc) • 343 B
JavaScript
;
exports.getBooleanOption = (options, key) => {
let value = false;
if (key in options && typeof (value = options[key]) !== 'boolean') {
throw new TypeError(`Expected the "${key}" option to be a boolean`);
}
return value;
};
exports.cppdb = Symbol();
exports.inspect = Symbol.for('nodejs.util.inspect.custom');