CSS-BEAUTIFY.JS(1)

πŸ“¦ version 1.14.0, in ubuntu jammy

πŸ’… css-beautify.js(1) β€” the girlies' guide to pretty-printing your stylesheets ✨

okay bestie, gather round, because this is css-beautify.js(1) from the User Commands section and she is serving. it's a lil command-line glow-up for your code and I'm gonna walk you through every single flag, no skips, no shortcuts. πŸŽ€


🌸 NAME 🌸

css-beautify.js β€” literally just, css-beautify. that's her name. that's the whole vibe. πŸ’–


✨ DESCRIPTION ✨

css-beautify.js@1.14.0 β€” yeah, version 1.14.0, she's got receipts. πŸ‘‘


πŸ› οΈ CLI Options: (the buttons and knobs, babes)

  • -f, --file β€” the input file(s) you wanna feed her. pass '-' if you want her to read from stdin instead, iykyk. πŸ“
  • -r, --replace β€” writes the output right back in-place, replacing the input. no take-backs, she's committed. πŸ’€
  • -o, --outfile β€” write the output to a file instead. and if you don't say anything? default is stdout. periodt.
  • --config β€” the path to your config file. hand her the map, she'll follow it. πŸ—ΊοΈ
  • --type [js|css|html] ["js"] β€” tell her what kinda file she's working with. default vibe is "js".
  • -q, --quiet β€” suppress logging to stdout. she's not gonna narrate, she's just gonna work. 🀫
  • -h, --help β€” show this help. hi, hello, here's the tea. 🫢
  • -v, --version β€” show the version. flex. πŸ’…

πŸŽ€ Beautifier Options: (the actual glow-up settings)

  • -s, --indent-size β€” how big your indentation is. default [4]. 🌈
  • -c, --indent-char β€” what character does the indenting. default is [" "]. yes, that's a space, she's classy. ✨
  • -t, --indent-with-tabs β€” indent with tabs instead. and heads up: this overrides -s and -c. tabs said "move, I'm the main character." πŸ‘‘
  • -e, --eol β€” the character(s) she uses as line terminators. default is [first newline in file, otherwise "\n]. πŸ¦‹
  • -n, --end-with-newline β€” end the output with a newline. a lil bow on top. πŸŽ€
  • --indent-empty-lines β€” keeps indentation on empty lines. yes, even the empty ones get the treatment. πŸ’œ
  • --templating β€” list of templating languages. your options are (auto,none,django,erb,handlebars,php,smarty) and the default is ["auto"]. and what does auto mean? auto = none in JavaScript, but all of them in html. she's context-aware, she's smart. 🧚
  • --editorconfig β€” use EditorConfig to set up the options. let the config file do the talking. πŸ“„
  • -b, --brace-style β€” [collapse|expand], default ["collapse"]. pick your fighter. πŸ”₯
  • -L, --selector-separator-newline β€” adds a newline between multiple selectors. breathing room, we love her. 🌸
  • -N, --newline-between-rules β€” adds a newline between CSS rules. same energy, different scope. 😌
ngl bestie, that's the whole list. no hidden flags, no mystery options, every single one is right there. πŸ’–

and that's a wrap on css-beautify.js(1) β€” brought to you by css-beautify.js 1.14.0, dated November 2021. she's been iconic since day one and she still ate. mwah, go format something pretty. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from