Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

critical-css-generator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

critical-css-generator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "critical-css-generator",
"version": "0.0.1",
"version": "0.0.2",
"main": "critical",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,11 +0,11 @@

# Critical CSS
# Critical CSS Generator
Extract critical css (above the fold) from a specific site using puppeteer.
Extract critical css (above the fold) for a specific site using puppeteer.
### Usage
1) `npm i https://s3-eu-west-1.amazonaws.com/vp-critical-css/critical-css-0.0.1.tgz`
1) `npm i critical-css-generator`
2) Run the following:
```
const criticalCss = require('critical-css').criticalCss;
const critical = require('critical-css-generator');
critical.generate({

@@ -12,0 +12,0 @@ url: 'https://www.vistaprint.com/business-cards',

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