Search code examples
javascriptprettier

How to user prettier to format code on the clientside?


I am developing a simple in-browser dev environment and want to run prettier on code inside my browser in the clientside. How would i do this?


Solution

  • I got this to work. Prettier can run on a string.