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

css-compare-screenshots

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-compare-screenshots

Generates comparision screenshots before/after modifying css. Use for regression testing.

  • 0.1.3
  • npm
  • Socket score

Version published
Weekly downloads
25
increased by2400%
Maintainers
1
Weekly downloads
 
Created
Source

#CSS before/after comparision screenshots

NPM version

Take before/after screenshots of a web page when updating css, to check for regressions.

Uses phantomjs do the page rendering.

Usage

import compareScreenshots from 'css-compare-screenshots' // or require, if you're not using ES6 yet

compareScreenshots({
  url: 'http://trello.com', // or local html file
  css: 'body { color: red }',
  width: 1300,
  height: 900,
  dist: 'comparisons/',
  fileName: 'homepage' // will generate 'homepage-before' and 'homepage-after'
}).then(function () {
  // done!
})

Keywords

FAQs

Package last updated on 31 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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