# gulp-csscomb

> CSScomb is a coding style formatter for CSS.

Latest version **3.1.0** (published 2019-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-csscomb
pnpm add gulp-csscomb
yarn add gulp-csscomb
bun add gulp-csscomb
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2019-11-10 |
| First published | 2014-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.9.0 |
| Dependencies | 5 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 121 |
| Author | Konstantin Tarkus |
| Maintainers | koistya |
| Keywords | gulpplugin, css, csscomb, lint, linter, preprocessor |

## Links

- npm: https://www.npmjs.com/package/gulp-csscomb
- Repository: https://github.com/koistya/gulp-csscomb
- Homepage: http://github.com/koistya/gulp-csscomb
- Issues: https://github.com/koistya/gulp-csscomb/issues
- npm.io page: https://npm.io/package/gulp-csscomb

## Dependencies (5)

- [csscomb](https://npm.io/package/csscomb.md) ^3.1.7
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [fancy-log](https://npm.io/package/fancy-log.md) ^1.3.2
- [ansi-colors](https://npm.io/package/ansi-colors.md) ^1.0.1
- [plugin-error](https://npm.io/package/plugin-error.md) ^0.1.2

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2019-11-10
- 3.0.8 — 2016-09-10
- 3.0.7 — 2016-03-21
- 3.0.6 — 2015-07-01
- 3.0.5 — 2015-06-30
- 3.0.4 — 2015-06-18
- 3.0.3 — 2014-10-07
- 3.0.2 — 2014-07-23
- 3.0.1 — 2014-07-23
- 3.0.0-2 — 2014-07-14
- 3.0.0-1 — 2014-07-05
- 3.0.0 — 2014-07-02
- 0.2.0 — 2014-07-02
- 0.1.0 — 2014-01-30

## README

# [gulp](http://gulpjs.com)-csscomb &nbsp; [![Build Status](http://img.shields.io/travis/koistya/gulp-csscomb/master.svg?style=flat)](http://travis-ci.org/koistya/gulp-csscomb) [![Dependency Status](https://david-dm.org/koistya/gulp-csscomb.svg?style=flat)](https://david-dm.org/koistya/gulp-csscomb) [![Tips](http://img.shields.io/gratipay/koistya.svg?style=flat)](https://gratipay.com/koistya)

[<img src="https://rawgit.com/koistya/gulp-csscomb/master/csscomb.jpg" width="80" height="80" align="right">](http://csscomb.com)

> Format CSS coding style with [CSScomb](http://csscomb.com).

*If you have any difficulties with the output of this plugin, please use the
[CSScomb tracker](https://github.com/csscomb/csscomb.js/issues).*

---

<p align="center"><b>🔥 Want to strengthen your core JavaScript skills and master ES6?</b><br>I would personally recommend this awesome <a href="https://es6.io/friend/konstantin">ES6 course</a> by Wes Bos.</p>

---


## Installation

```sh
npm install gulp-csscomb --save-dev
```

## Example 1

```js
var gulp = require('gulp');
var csscomb = require('gulp-csscomb');

gulp.task('styles', function() {
  return gulp.src('src/styles/main.css')
    .pipe(csscomb())
    .pipe(gulp.dest('./build/css'));
});
```

## Example 2

```js
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();

gulp.task('styles', function() {
  return gulp.src('src/styles/bootstrap.less')
    .pipe($.less({strictMath: true}))
    .pipe($.autoprefixer([
      'Android 2.3',
      'Android >= 4',
      'Chrome >= 20',
      'Firefox >= 24', // Firefox 24 is the latest ESR
      'Explorer >= 8',
      'iOS >= 6',
      'Opera >= 12',
      'Safari >= 6']))
    .pipe($.csscomb())
    .pipe(gulp.dest('./build/css'));
});
```

If there is `.csscomb.json` file present in the same folder as the source file(s),
or in the project root folder, `gulp-csscomb` will read config settings from it
instead of default config.

You can also specify a pre-defined configuration. Ex.: `csscomb('zen')`

## License

The MIT License (MIT) © Konstantin Tarkus ([@koistya](https://twitter.com/koistya))

---
_Source: https://npm.io/package/gulp-csscomb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
