Socket
Socket
Sign inDemoInstall

specificity

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

specificity - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

bin/specificity

5

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc