简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM