mirror of
https://github.com/hanzoai/better-sqlite3-multiple-ciphers.git
synced 2026-09-24 16:57:19 +00:00
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
'use strict';
|
|
|
|
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');
|