Formatters & Code
JavaScript / TypeScript Formatter
Gratis JavaScript en TypeScript formatter. Prettier's standaardregels, volledig in-browser uitgevoerd — detecteert TypeScript automatisch aan de hand van type-annotaties. Plakken, klikken, kopiëren.
Redactionele opmerking
Understanding · JS, set to a house style.
Dit uitgebreide hoofdstuk is momenteel alleen in het Engels beschikbaar. De conversietool hierboven werkt in jouw taal; de lange uitleg is nog niet vertaald.
Veelgestelde vragen
Quick answers.
›Does it handle TypeScript?
Yes — the tool auto-detects TypeScript from type annotations (`: string`, `interface Foo`, `type X = ...`) and routes to Prettier's TS parser. You don't have to toggle anything.
›Which Prettier options does it use?
Prettier's out-of-box defaults: 2-space indent, semicolons, double quotes, 80-column print width, trailing commas. These match the vast majority of published codebases.
›Will it change my code's behaviour?
No — Prettier only reformats; it never changes semantics. The output runs identically to the input, byte-for-byte after transpilation.
›Can it minify JavaScript?
No — Prettier is a formatter, not a minifier. For production minification use Terser, esbuild or SWC locally. They produce far smaller output than a whitespace collapser would.
Mensen zoeken ook naar
Gerelateerde tools
More in this room.
- JSON Formatter & ValidatorVerfraai, comprimeer en valideer JSON — gratis, geen aanmelding.
- SQL FormatterVerfraai en laat lelijke SQL-query's inspringen.
- XML Formatter & ValidatorVerfraai, comprimeer en valideer XML — direct.
- HTML FormatterVerfraai en comprimeer HTML — Prettier-defaults.
- CSS FormatterVerfraai en comprimeer CSS stylesheets.
- YAML-FormateerderNormaliseer YAML-inspring en -structuur.