4. applyCalc.applyStringModifiers(val, modifiers, context)
Applies a series of string transformations/modifiers to a value. Supports:
trim,upper,lower,capitalize,title,reverseappend:<text>,prepend:<text>slice:start:end,padStart:length:char,padEnd:length:char,repeat:countreplace:from:to,replaceRegex:/pattern/flags:replacement- Interpolation using
{{key}} - Special:
__now__→ current ISO timestamp
Example:
1const str = " hello world ";2const result = applyCalc.applyStringModifiers(str, ["trim", "title"]);3console.log(result); // "Hello World"