csscomb.js

CSS coding style formatter

  • 所有者: csscomb/csscomb.js
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

2. Configure

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

Command Line

csscomb assets/css

Node.js module

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 maintainer. 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/csscomb.js
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2013-07-31 05:52:35
推送於2023-01-03 18:24:31
最后一次提交2019-03-24 05:14:39
發布數40
最新版本名稱v4.3.0 (發布於 2019-04-17 23:11:04)
第一版名稱v0.0.1 (發布於 )
用户参与
星數3.3k
關注者數73
派生數456
提交數640
已啟用問題?
問題數470
打開的問題數89
拉請求數105
打開的拉請求數20
關閉的拉請求數66
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?