SASS(1)

πŸ“¦
version 3.7.4 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– SASS(1) β€” the sass-convert glow-up guide πŸ’–

okay bestie, welcome to the sass-convert page β€” it's filed under User Commands in the manual, and yes it's literally called Sass in the NAME line. iykyk.


✨ NAME ✨

Sass β€” the way that sass-convert converts files between CSS... and honestly, so much more. she's a whole converter, periodt.


🌈 SYNOPSIS 🌈

sass-convert [options] [INPUT] [OUTPUT]

πŸ¦‹ DESCRIPTION πŸ¦‹

πŸ’… Description

she converts between CSS, indented syntax, and SCSS files. like, for example? she can take your indented-syntax file and turn it into SCSS, or take plain CSS and make it SCSS (adding appropriate nesting along the way). not her inventing nesting for you and being iconic about it πŸ˜­πŸ’–

πŸ‘‘ Common Options

  • -F, --from FORMAT β€” which format you're converting from. the options are css, scss, sass. by default she infers it from the input filename, but if there is no input filename at all, it defaults to css. πŸ’«
  • -T, --to FORMAT β€” which format you're converting to. can be scss or sass. by default she infers it from the output filename, and if there's no output filename, it defaults to sass. slay.
  • -i, --in-place β€” converts a file to its own syntax. use this to update some deprecated syntax. glow-up in place, we love a self-improvement arc 🫢
  • -R, --recursive β€” converts all the files in a directory. requires --from and --to, no exceptions bestie.
  • -?, -h, --help β€” shows this help message. the classic.
  • -v, --version β€” prints the Sass version. main character announcement energy.

πŸŽ€ Style

  • --dasherize β€” converts underscores to dashes. little punctuation makeover ✨
  • --indent NUM β€” how many spaces to use for each level of indentation. defaults to 2. and "t" means use hard tabs (tabs girlies rise).
  • --old β€” outputs the old-style ":prop val" property syntax. only meaningful when generating Sass, so don't come for her if you're not generating Sass, fr fr.

πŸ“ Input and Output

  • -s, --stdin β€” reads input from standard input instead of an input file. this is the default if no input file is specified. requires --from.
  • -E, --default-encoding ENCODING β€” specify the default encoding for input files. tell her how to read the vibes.
  • --unix-newlines β€” use Unix-style newlines in written files. always true on Unix, so on Unix this is giving "yes obviously" πŸ’€

🧚 Miscellaneous

  • --cache-location PATH β€” the path to save parsed Sass files. defaults to .sass-cache.
  • -C, --no-cache β€” don't cache to sassc files. no storage, no notes, just conversion.
  • -q, --quiet β€” silences warnings and status messages during conversion. peace and quiet, she's meditating 🧘
  • --trace β€” shows a full Ruby stack trace on error. when things go wrong she shows you everything.

heads up bestie: --recursive literally requires --from and --to, and --stdin literally requires --from. don't skip them, she will not be happy. πŸ™ˆ

and that's the whole page, no cap πŸ’œ this manual page is from Sass 3.7.4, dated November 2021, served with love from the User Commands section β€” mwah, stan her, bye bestie πŸ‘‘βœ¨

πŸ“¦ where this page comes from