Skip to content

Tool for sorting CSS properties in specific order

Notifications You must be signed in to change notification settings

puzankov/csscomb.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tool for beautify CSS

Installation

npm install csscomb

To run csscomb, you can use the following command from the project root:

./node_modules/.bin/csscomb path[ path[...]]
$ ./node_modules/.bin/csscomb --help

  Usage: csscomb [options] <file ...>

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -c, --config [path]  configuration file path

Configuration

csscomb is configured using .csscomb.json file, located in the project root.

Example configuration:

{
    "exclude": ["node_modules/**"],
    "colon-space": true,
    "stick-brace": true,
    "strip-spaces": true
}

Tests

Run npm test for tests.

Other projects

About

Tool for sorting CSS properties in specific order

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 86.2%
  • JavaScript 12.7%
  • CSS 1.1%