HTML-BEAUTIFY.JS(1)

πŸ“¦ version 1.14.0, in ubuntu jammy

πŸ’– NAME πŸ’–

html-beautify.js β€” no cap, that's literally the whole name, that's the icon, that's the moment ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

html-beautify.js@1.14.0 β€” bestie, you're looking at version 1.14.0 of the html beautifier. Sit down, hydrate, and let's go through literally every single flag together 🫢

🌸 CLI Options 🌸

These are the "what do you want me to actually do" options, the main character ones πŸ‘‘

  • -f, --file β€” input file(s)! And yes, pass '-' for stdin, she's flexible like that πŸ’…
  • -r, --replace β€” write the output in-place, replacing the input. Same file, glow-up applied, no trace left behind πŸ”₯
  • -o, --outfile β€” write output to a file. Default is stdout, so if you don't say anything she just yells it at your terminal πŸ“’
  • --config β€” path to the config file πŸŽ€
  • --type β€” [js|css|html] ["js"] β€” pick which one you're beautifying, default is ["js"] πŸ¦‹
  • -q, --quiet β€” suppress logging to stdout. Shhh. Silent. Mysterious. 🀫
  • -h, --help β€” show this help, aka the thing you're reading but cooler 😭
  • -v, --version β€” show the version, for when you gotta know exactly which era of her you're dealing with ⭐

πŸ’… Beautifier Options πŸ’…

Now the real tea β€” how she's gonna format everything. This is where the ✨aesthetic✨ lives.

  • -s, --indent-size β€” indentation size, default [4] 🌸
  • -c, --indent-char β€” indentation character, default [" "] β€” that's a single space, bestie, she said minimalism πŸ’œ
  • -t, --indent-with-tabs β€” indent with tabs. And heads up: this overrides -s and -c, so it's the boss of that whole situation πŸ‘‘
  • -e, --eol β€” character(s) to use as line terminators. Default is [first newline in file, otherwise "\n] 🧚
  • -n, --end-with-newline β€” end output with a newline, because files deserve a lil breathing room at the end πŸ“
  • --indent-empty-lines β€” keep indentation on empty lines. Yes, even the blank ones get the treatment ✨
  • --templating β€” list of templating languages (auto,none,django,erb,handlebars,php,smarty), default ["auto"], and auto means: none in JavaScript, all in html 🌈
  • --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, default [0] 🌸
  • -A, --wrap-attributes β€” wrap html tag attributes to new lines, values are [auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned], default ["auto"] πŸ”₯
  • -i, --wrap-attributes-indent-size β€” indent wrapped tags to after N characters, default [indent-level] πŸ’œ
  • -p, --preserve-newlines β€” preserve line-breaks (--no-preserve-newlines disables it, so you can turn her off) 🫢
  • -m, --max-preserve-newlines β€” number of line-breaks to be preserved in one chunk, default [10] 😭
  • -U, --unformatted β€” list of tags (defaults to inline) that should not be reformatted β€” hands off, she's wearing that fit as-is πŸ’…
  • -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, default [""] 🧚
fr fr, that's every single one. nothing skipped, nothing merged, we keep it thorough in this house πŸ’–

okay that's the whole page, bestie πŸŽ€ this was html-beautify.js, version 1.14.0, and the page itself is dated November 2021 β€” vintage but still iconic, lowkey timeless, iykyk πŸ’…βœ¨

πŸ“¦ where this page comes from