0.0.11 • Published 6 years ago

sort-sass-smacss v0.0.11

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

SortSass

Sass properties sorting tool.

It supports only indented sass syntax.

Install

npm install -g sort-sass

Leave off the -g if you don't wish to install globally.

Usage

From CLI:

sortsass /path/to/styles.sass

From node:

var fs = require('fs');
var sortSass = require('sort-sass');

var sassString = fs.readFileSync('some.sass');
var sortedSassString = sortSass(sassString);

Examples

Input:

.foo
	font-size: 1em
	content: 'bar'
	color: white
	display: block
	position: absolute

Output:

.foo
	content: 'bar'
	display: block
	position: absolute
	font-size: 1em
	color: white

Properties order

Ordering is hardcoded right now, you can see it here https://github.com/miraks/sort-sass/blob/master/src/order.coffee. I think I'll add an option to change this.

miraks (repository owner) in a comment to #1

There is an issue #3

License

MIT © Alexey Volodkin

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.1

6 years ago