The JSON string to load placeholders from.
An array of placeholder objects.
const customPlaceholders = loadPlaceholdersFromJSONString(`{
"{{test}}": {
"name": "test",
"regex": "test",
"value": "my value"
}
}`);
const result = await PLApplicator.applyToString("{{test}}", { customPlaceholders: customPlaceholders });
console.log(result); // my value
Generated using TypeDoc
Loads multiple placeholders from a JSON string.