HTML-BEAUTIFY(1)
π HTML-BEAUTIFY π
okay so bestie, say hi to html-beautify, aka the manual page for your new favorite glow-up tool. it lives in the User Commands section of the manual, and it's here to do exactly one thing and do it gorgeously β¨
πΈ NAME πΈ
html-beautify β beautify, unpack or deobfuscate HTML π
like, it takes your crusty little HTML and makes it pretty. that's the whole vibe. no cap.
π DESCRIPTION π
html-beautify.js@1.15.4
that's the version, bestie, and she's serving.
β¨ CLI Options β¨
these are the knobs you turn at the command line, iykyk:
-f,--fileβ the input file(s). and if you wanna be β¨mysteriousβ¨, pass'-'for stdin π-r,--replaceβ write the output in-place, replacing the input. girl, it overwrites. be careful, fr fr.-o,--outfileβ write output to a file instead (default is stdout, so it just vibes into your terminal)--configβ path to the config file, if you're the organized type ποΈ--type [js|css|html] ["js"]β pick your language flavor. default is"js".-q,--quietβ suppress logging to stdout. shhh π€«-h,--helpβ show this help, bestie-v,--versionβ show the version, in case you forgot we're on1.15.4π
π¦ Beautifier Options π¦
now the FUN part. the actual makeover. all the defaults are listed, don't worry, i would never gatekeep π
-s,--indent-sizeβ indentation size. default[4]. four spaces of pure elegance β¨-c,--indent-charβ the indentation character. default[" "]. yes, a single space. iconic.-t,--indent-with-tabsβ indent with tabs instead. this one overrides-sand-c, so pick a side and commit π-e,--eolβ the character(s) used as line terminators. default is the first newline in the file, otherwise"\n-n,--end-with-newlineβ end the output with a newline. tidy queen behavior π--indent-empty-linesβ keep the indentation on empty lines. yes, even the blank ones get love.--templatingβ a list of templating languages. the options are(auto,none,angular,django,erb,handlebars,php,smarty)and the default is["auto", auto = none in JavaScript, auto = all except angular in html (and inline javascript/css)]β soautomeansnonein JavaScript, and in html (plus inline javascript/css) it means everything exceptangular. no cap, that's literally what it says.--editorconfigβ use EditorConfig to set up the options. let the config file do the talking π«Ά-b,--brace-styleβ brace style, one of[collapse|expand|end-expand], default["collapse"]-I,--indent-inner-htmlβ indent thebodyandheadsections. default isfalse.-H,--indent-handlebarsβ indent handlebars. default isfalse.-S,--indent-scriptsβ one of[keep|separate|normal], default["normal"]-w,--wrap-line-lengthβ wrap lines that exceed N characters. default[0], so by default she does not wrap, she lets it flow π-A,--wrap-attributesβ wrap html tag attributes onto new lines. pick from[auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned], default["auto"]-M,--wrap-attributes-min-attrsβ minimum number of html tag attributes needed for the force wrap attribute options. default[2]-i,--wrap-attributes-indent-sizeβ indent wrapped tags to after N characters. default is[indent-level]-p,--preserve-newlinesβ preserve line-breaks. and--no-preserve-newlinesdisables it, so you can flip the whole thing off βοΈ-m,--max-preserve-newlinesβ how many line-breaks get preserved in one chunk. default[10]-U,--unformattedβ a list of tags that should not be reformatted (it defaults toinline). leave them alone, they're doing their best π-T,--content_unformattedβ a list of tags whose content should not be reformatted (defaults topre). the outside gets the glow-up, the inside stays untouched π-E,--extra_linersβ a list of tags that should have an extra newline (defaults to[head,body,/html]). breathing room, bestie π¬οΈ--unformatted_content_delimiterβ keep text content together between this string. default[""]
β οΈ heads up:-r,--replacewrites in-place over your input file, so if you're not 100% sure, maybe do a lil backup first. i'm just looking out for you π₯Ί
π a lil sign-off π
that's the whole page, bestie β html-beautify, version 1.15.4, dated March 2025. you ate that π
β¨ go forth and make your HTML gorgeous. periodt. ππ¦π
π¦ where this page comes from
- debian trixie: node-js-beautify 1.15.4+dfsg+~cs1.31.6-1 Β· MIT
- ubuntu resolute: node-js-beautify 1.15.4+dfsg+~cs1.31.6-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms