css-specificity-calculator
v2.1.1
Published
Calculates the specificity of a given CSS selector
Downloads
4
Readme
css-specificity-calculator
Calculates the specificity of a given CSS selector.
Usage
import calculateSpecificity from 'css-specificity-calculator';
calculateSpecificity('ul#nav li.nav-item::before'); // [1, 1, 3]