Calculate specificity of CSS selectors

npm install clear-cut
4 downloads in the last day
14 downloads in the last week
90 downloads in the last month

clear cut Build Status

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
cd clear-cut
npm install
npm test
npm loves you