Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (22 loc) · 912 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 912 Bytes
Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

Clear cut

OS X Build Status Windows Build Status Dependency Status

Calculate the specificity of a CSS selector

Using

npm install clear-cut
{specificity} = require 'clear-cut'
specificity('body') # 1
specificity('#footer') # 100
specificity('.error.message') # 20

Developing

git clone https://github.com/atom/clear-cut.git
cd clear-cut
npm install
npm test