"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "replaceInTemplate", {
    enumerable: true,
    get: function() {
        return replaceInTemplate;
    }
});
const replaceInTemplate = (templateString, replacements)=>Object.entries(replacements ?? {}).reduce((result, [key, replacement])=>result.replace(new RegExp(`\\$${key}\\$`, 'g'), replacement?.toString() ?? ''), templateString);

//# sourceMappingURL=replaceInTemplate.js.map