Skip to content

Instantly share code, notes, and snippets.

@henrycunh
Created March 1, 2019 22:54
Show Gist options
  • Save henrycunh/7c769d5352300a7166c63e30f4122d16 to your computer and use it in GitHub Desktop.
Save henrycunh/7c769d5352300a7166c63e30f4122d16 to your computer and use it in GitHub Desktop.
Converting from SASS to SCSS in a line

Requirements

  • sass-converter
  • xsel
  • clip

You can install on debian based distros by running sudo apt-get install ruby-sass xsel xclip

Using

Select and copy the SASS, run the script below

xsel -b > temp.sass; sass-convert temp.sass temp.scss; cat temp.scss | xclip -sel clip; rm temp.s?ss;

Then paste, it will be in SCSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment