# drycss

> Avoid duplicated declaration block in css

Latest version **1.0.1** (published 2015-08-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install drycss
pnpm add drycss
yarn add drycss
bun add drycss
```

Provides the command `drycss`.

## 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 | 1.0.1 |
| Published | 2015-08-17 |
| First published | 2015-08-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Alexandre Oger |
| Maintainers | nielk |

## Links

- npm: https://www.npmjs.com/package/drycss
- npm.io page: https://npm.io/package/drycss

## Dependencies (6)

- [css](https://npm.io/package/css.md) ^2.2.1
- [chalk](https://npm.io/package/chalk.md) ^1.1.0
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [commander](https://npm.io/package/commander.md) ^2.8.1
- [optionator](https://npm.io/package/optionator.md) ^0.6.0
- [log-symbols](https://npm.io/package/log-symbols.md) ^1.0.2

## Recent versions

- 1.0.1 (latest) — 2015-08-17
- 1.0.0 — 2015-08-15

## README

# drycss

A lint tool to help point out duplicate declaration block.

## Installation

local :
`npm install drycss`

global :
`npm install drycss -g`

## Rule

```css

.foo {
  background-color: green;
  color: black;
}

.bar {
  text-align: center;
}

@media (min-width: 768px) {

  .baz {
    background-color: red;
    color: yellow;
  }

  #qux {
    position: relative;
  }

  /* can be merged with declaration block .baz */
  .norf {
    background-color: red;
    color: yellow;
  }

  /* can be merged with declaration block #qux */
  hr {
    position: relative;
  }
}
```

## Usage

### Lint a source file

`drycss --source main.css`

or

`drycss -s main.css`

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