normalize-text
normalize-text copied to clipboard
Provide tagged string template functions
Would be nice to provide tagged string template functions.
Something like:
normalizeWhiteSpaces`
Hi, ${student.name}!
How are you doing?
`;
//=> "Hi, Vitor! How are you doing?"
Seems that wouldn't be hard to do with current normalize functions. But maybe they should be scoped in a different way.
Some implementation details in the gist below: https://gist.github.com/VitorLuizC/f80a9b51c3a686e5b5e35259bbf263fa