CSScomb is a coding style formatter for CSS. You can easily write your own configuration to make your style sheets beautiful and consistent.
0. Maintenance mode
The tool is no longer being developed though we may still fix parsing errors and critical bugs.
That means that you should not expect any new features or options.
If you'd like to become a maintainer of this project, please ping @tonyganch.
Global installation (for use as a command-line tool):
npm install csscomb -g
Local installation (for use as a command-line tool within current directory):
npm install csscomb
To install as a project dependency (the package will appear in your dependencies):
npm install csscomb --save
To install as a dev dependency (the package will appear in your devDependencies):
npm install csscomb --save-dev
There are a number of ways to configure CSScomb:
- Use one of predefined configs
.csscomb.jsonfile in the project root.
- Set path to config's file
*.cssfile as a template
var Comb = require('csscomb'); var comb = new Comb('zen'); comb.processPath('assets/css');
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
Thanks for assistance and contributions:
This software is released under the terms of the MIT license.