Giter Site home page Giter Site logo

csscomb.js's Introduction

CSScomb CSSComb

Build Status NPM version Dependency Status devDependency Status

CSScomb is a coding style formatter for CSS. You can easily write your own configuration to make your style sheets beautiful and consistent.

The main feature is sorting properties in a specific order. It was inspired by @miripiruni's PHP-based tool of the same name. This is the new JavaScript version, based on the powerful CSS parser Gonzales PE.

1. Install

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
  • Put .csscomb.json file in the project root.
  • Set path to config's file
  • Use *.css file as a template

3. Use

csscomb assets/css
var Comb = require('csscomb');
var comb = new Comb('zen');
comb.processPath('assets/css');

4. Contribute

This project is actively mantained. But anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.

Also you can become a mantainer. To do that please ping @tonyganch.

Authors

@mishanga, @tonyganch

Thanks for assistance and contributions:

@miripiruni, @anton-rudeshko, @cvrebert, @filtercake, @ignovak, @kizu, @lefoy, @L0stSoul, @mishaberezin, @puzankov, @schneyra, @thejameskyle, @vecmezoni

License

This software is released under the terms of the MIT license.

Other projects

csscomb.js's People

Contributors

tonyganch avatar mishanga avatar kizu avatar l0stsoul avatar sodatea avatar obenjiro avatar anton-rudeshko avatar vecmezoni avatar cvrebert avatar jonrohan avatar cust0dian avatar tombyrer avatar hudochenkov avatar alexeykuzmin avatar j0tunn avatar borodindk avatar mahnunchik avatar gonzalocasas avatar jamiebuilds avatar jonsuh avatar schneyra avatar necolas avatar ravasthi avatar romanlex avatar sihu avatar miripiruni avatar nataschachu avatar

Watchers

James Cloos avatar Loring Dodge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.