svelte-prettier-service Svelte Themes

Svelte Prettier Service

A Node.js server that runs prettier on svelte strings and returns it formatted

Svelte Prettier Service

This repository is used by vue2svelte to show prettyfied svelte code.

It expects a POST request to this address: https://us-central1-svelte-prettier.cloudfunctions.net/prettify with this body:

{
    "code": "[your svelte code here]"
}

The response looks like this:

{
    "formattedCode": "[some svelte code];\n"
}

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes