legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
15 lines • 469 B
JavaScript
import { DEFAULT_CONFIG } from './schema.js';
function cloneConfig(config) {
if (typeof structuredClone === 'function') {
return structuredClone(config);
}
return JSON.parse(JSON.stringify(config));
}
let runtimeConfig = cloneConfig(DEFAULT_CONFIG);
export function getRuntimeConfig() {
return cloneConfig(runtimeConfig);
}
export function setRuntimeConfig(config) {
runtimeConfig = cloneConfig(config);
}
//# sourceMappingURL=runtime.js.map