CSS Shampoo
CSSS is a tool that detects multiple CSS selectors from your stylesheets and it works across multiple files.
##Introduction - why use shampoo?
"Shampoo /ʃæmˈpuː/ is a hair care product that is used for cleaning hair. The goal of using shampoo is to remove the unwanted build-up without stripping out so much sebum as to make hair unmanageable." - Wikipedia
"CSS Shampoo is a CSS care product that is used for cleaning CSS. The goal of using CSS Shampoo is to remove unwanted build-up of messy CSS without stripping out so much developer's hair as to make CSS unmanageable." - CSS Shampoo
Installation
npm install -g csss
Usage
Usage: csss [options] <file, ...>
e.g. csss -f /path/to/dirty.css,/messy/css/dir/,http://not-clean.com/css/style.css
Options:
-h, --help output usage information
-V, --version output the version number
-f, --files <files> Specify stylesheets to process
You can pass local CSS files, a folder which contains CSS files or URLs.
##Results example
You will get a list with all selectors which appear multiple times in your CSS file(s). The exact lines of the selector is shown and if you were searching through multiple files, you will also get the file name printed.
You can also see the amount of shared properties of each same selector, which means some selectors have exactly the same properties or are overwriting already existing ones in the file.