drycss

1.0.1 • Public • Published

drycss

A lint tool to help point out duplicate declaration block.

Installation

local : npm install drycss

global : npm install drycss -g

Rule

.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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i drycss

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • nielk