Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement
Calculate the specificity of a CSS selector
npm install clear-cut
{specificity} = require 'clear-cut'
specificity('body') # 1
specificity('#footer') # 100
specificity('.error.message') # 20
git clone https://github.com/atom/clear-cut.git
cd clear-cut
npm install
npm test