[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]appveyor.yml2024-10-02 08:35 278  
[   ]package.json2024-10-02 08:35 674  
[TXT]README.md2024-10-02 08:35 738  
[TXT]LICENSE.md2024-10-02 08:35 1.0K 
[   ]index.js2024-10-02 08:35 4.0K 
# Clear cut
[![OS X Build Status](https://travis-ci.org/atom/clear-cut.png?branch=master)](https://travis-ci.org/atom/clear-cut)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/civ54x89l06286m9/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/clear-cut/branch/master) [![Dependency Status](https://david-dm.org/atom/clear-cut.svg)](https://david-dm.org/atom/clear-cut)

Calculate the specificity of a CSS selector

## Using

```sh
npm install clear-cut
```

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

## Developing

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