Skip to content

Instantly share code, notes, and snippets.

@ihoka
Created September 13, 2011 08:15
Show Gist options
  • Save ihoka/1213397 to your computer and use it in GitHub Desktop.
Save ihoka/1213397 to your computer and use it in GitHub Desktop.
sass-convert --help
Usage: sass-convert [options] [INPUT] [OUTPUT]
Description:
Converts between CSS, Sass, and SCSS files.
E.g. converts from SCSS to Sass,
or converts from CSS to SCSS (adding appropriate nesting).
Options:
-F, --from FORMAT The format to convert from. Can be css, scss, sass, less.
By default, this is inferred from the input filename.
If there is none, defaults to css.
-T, --to FORMAT The format to convert to. Can be scss or sass.
By default, this is inferred from the output filename.
If there is none, defaults to sass.
-R, --recursive Convert all the files in a directory. Requires --from and --to.
-i, --in-place Convert a file to its own syntax.
This can be used to update some deprecated syntax.
--dasherize Convert underscores to dashes
--old Output the old-style ":prop val" property syntax.
Only meaningful when generating Sass.
-C, --no-cache Don't cache to sassc files.
-E encoding Specify the default encoding for Sass and CSS files.
-s, --stdin Read input from standard input instead of an input file
--trace Show a full traceback on error
--unix-newlines Use Unix-style newlines in written files.
-?, -h, --help Show this message
-v, --version Print version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment