Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to Invert a text in typescript?

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading