New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-razor

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-razor - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

9

index.js

@@ -49,2 +49,4 @@ const cheerio = require('cheerio')

})
} else {
resolve(result)
}

@@ -71,2 +73,3 @@ })

let keepCount = 0
let keepSelectors = ''
let removeCount = 0

@@ -87,2 +90,3 @@ let removeSelectors = ''

} else {
keepSelectors += node.selector + DELIMITER
keepCount++

@@ -94,7 +98,10 @@ }

if (opt.report) {
const percent = ((removeCount / (keepCount + removeCount)) * 100).toFixed()
console.log(' Selectors kept: ' + keepCount)
console.log('Selectors removed: ' + removeCount)
console.log(' Percent removed: ' + removeCount / (keepCount + removeCount))
console.log(' Percent removed: ' + percent + '%')
console.log(' ')
console.log('Removed selectors: ' + removeSelectors)
console.log(' ')
console.log(' Kept selectors: ' + keepSelectors)
}

@@ -101,0 +108,0 @@ }

2

package.json
{
"name": "css-razor",
"version": "2.1.0",
"version": "2.1.1",
"description": "Remove unused selectors from CSS efficiently",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,3 +22,3 @@ # css-razor

```bash
css-razor build/css/index.css build/index.html > build/css/index.min.css
css-razor build/css/index.css build/index.html --stdout > build/css/index.min.css
```

@@ -29,3 +29,3 @@

```bash
css-razor build/css/*.css build/*.html > build/css/index.min.css
css-razor build/css/*.css build/*.html --stdout > build/css/index.min.css
```

@@ -32,0 +32,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