@tsukiroku/tiny
Version:
Tiny interpreter
15 lines (14 loc) • 438 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseOptions = void 0;
const parseOptions = (option) => option
? { ...(0, exports.parseOptions)(), ...JSON.parse(option) }
: {
allowEval: false,
allowJavaScript: false,
useStdLibAutomatically: false,
stderrPrefix: true,
stderrColor: true,
locale: 'en',
};
exports.parseOptions = parseOptions;