Rich-syntax string formatter in TypeScript

1 VitalyTomilov 1 8/9/2025, 12:50:16 PM github.com ↗

Comments (1)

VitalyTomilov · 3h ago
Complete formatting syntax supported (similar to such frameworks as Angular):

${prop1.prop2.prop3 | filter1 | filter2 | filter3 : arg1 : arg2}

You can have any number of value-transforming filters, and those can accept any number of arguments.

You can implement any formatting output in a very easy way, without having to do any complex variable parsing or replacement, as the library will do it for you.

The library was tested to do 1 mln variable replacements per second, which is part of the unit tests.