HTML-BEAUTIFY.JS(1)
π 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-sand-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"], andautomeans: 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 isfalse. π-H,--indent-handlebarsβ indent handlebars. Default isfalse. π¦-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-newlinesdisables 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 topre) 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
- ubuntu jammy: node-js-beautify 1.14.0+dfsg+~0.15.3-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms