How to Invert a text in typescript?

Issue

I am trying to convert regular text to inverted form. is it possible in typescript?
regular text: how are you?
expected text: expected text

Solution

This can be emulated by using typescript and a package that uses different letters that look similar e.g. https://www.npmjs.com/package/flip-text.

If you are thinking about using this in the context of a webpage this can be done far easier and cleaner by using (possibly type-script controlled) CSS though. Have a look at this for example: https://www.w3docs.com/snippets/css/how-to-flip-text-with-css.html

Answered By – Vincent

Answer Checked By – Marilyn (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.