Format
POST a string of code and receive a formatted version back.
Supported formats
- js
- css
- html
- md
curl \
-X POST \
-H "Content-Type: application/json" \
-d '{"format": "html", "src": "<body style=\"width:1200px; height:675px; text-align:center;\"><h1 style=\"color:tomato\">Hello, world! <br />HTML IS NOW FORMATTED!</h1>"}' \
https://components.ai/api/format