Man page - html-beautify-js(1)

Packages contains this manual

Manual

HTML-BEAUTIFY

NAME
DESCRIPTION
CLI Options:
Beautifier Options:

NAME

html-beautify - beautify, unpack or deobfuscate HTML

DESCRIPTION

html-beautify.js@1.15.4

CLI Options:

-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"]

-q , --quiet

Suppress logging to stdout

-h , --help

Show this help

-v , --version

Show the version

Beautifier Options:

-s , --indent-size

Indentation size [4]

-c , --indent-char

Indentation character [" "]

-t , --indent-with-tabs

Indent with tabs, overrides -s and -c

-e , --eol

Character(s) to use as line terminators. [first newline in file, otherwise "\n]

-n , --end-with-newline

End output with newline

--indent-empty-lines

Keep indentation on empty lines

--templating

List of templating languages (auto,none,angular,django,erb,handlebars,php,smarty) ["auto", auto = none in JavaScript, auto = all except angular in html (and inline javascript/css)]

--editorconfig

Use EditorConfig to set up the options

-b , --brace-style

[collapse|expand|end-expand] ["collapse"]

-I , --indent-inner-html

Indent body and head sections. Default is false.

-H , --indent-handlebars

Indent handlebars. Default is false.

-S , --indent-scripts

[keep|separate|normal] ["normal"]

-w , --wrap-line-length

Wrap lines that exceed N characters [0]

-A , --wrap-attributes

Wrap html tag attributes to new lines [auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned] ["auto"]

-M , --wrap-attributes-min-attrs

Minimum number of html tag attributes for force wrap attribute options [2]

-i , --wrap-attributes-indent-size Indent wrapped tags to after N characters [indent-level]

-p , --preserve-newlines

Preserve line-breaks ( --no-preserve-newlines disables)

-m , --max-preserve-newlines

Number of line-breaks to be preserved in one chunk [10]

-U , --unformatted

List of tags (defaults to inline) that should not be reformatted

-T , --content_unformatted

List of tags (defaults to pre) whose content should not be reformatted

-E , --extra_liners

List of tags (defaults to [head,body,/html] that should have an extra newline

--unformatted_content_delimiter

Keep text content together between this string [""]