specificity
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "specificity", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Calculate the specificity of a CSS selector", | ||
@@ -23,2 +23,5 @@ "keywords": [ | ||
"main": "specificity", | ||
"bin": { | ||
"specificity": "./bin/specificity" | ||
}, | ||
"scripts": { | ||
@@ -25,0 +28,0 @@ "test": "mocha test/test.js" |
@@ -86,2 +86,19 @@ # Specificity Calculator | ||
## Command-line usage | ||
Run `npm install specificity` to install the module locally, or `npm install -g specificity` for global installation. You may need to elevate permissions by `sudo` for the latter. Run `specificity` without arguments to learn about its usage: | ||
```bash | ||
$ specificity | ||
Usage: specificity <selector> | ||
Computes specificity of a CSS selector. | ||
``` | ||
Pass a selector as the first argument to get its specificity computed: | ||
```bash | ||
$ specificity "ul#nav li.active a" | ||
0,1,1,3 | ||
``` | ||
## Testing | ||
@@ -88,0 +105,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18441
7
108