All apps/js-beautify

js-beautify

js-beautify

Beautifier for javascript.

Runs as js-beautify, css-beautify, html-beautify|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 10 fields

Reformat JavaScript, CSS or HTML with js-beautify. Only the common indentation and wrapping options are offered; run css-beautify or html-beautify for the other languages.

Opens the form; the finished command lands at your prompt, unrun
otty gui js-beautify
Beautify codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Input file*
file
Indent size
integer
TasksEach one presets the form for one job
Print formatted output
fileindent_size
Format file in place
filereplaceindent_size
ParametersOnly these flags are editable in the form
Input file
Reads standard input when empty and no file is given.
path
--file-f
Output file
Defaults to standard output.
path
--outfile-o
Replace input file in place
boolean
--replace-r
Beautifier type
enum
--typejscsshtml
Indent size
integer
--indent-size-s
Indent with tabs
boolean
--indent-with-tabs-t
End output with newline
boolean
--end-with-newline-n
Wrap line length
0 disables wrapping.
integer
--wrap-line-length-w
Config file
path
--config
Quiet
boolean
--quiet-q
SourcesEvery flag above is checked against these
readme
-f, --file Input file(s) (Pass '-' for stdin) -r, --replace Write output in-place, replacing input -o, --outfile Write output to file (default stdout) --config Path to config file --type [js|css|html] ["js"] Select beautifier type -q, --quiet Suppress logging to stdout -s, --indent-size Indenta…
help2026-10-27

github.com

Before it fills your prompt, Otty checks the installed js-beautify against its version. A form that does not match your version is not offered.