Skip to content
This repository has been archived by the owner on Jul 20, 2019. It is now read-only.

silverwind/pagediff

Repository files navigation

pagediff

Visually diff websites

Preview

Installation and Usage

$ git clone git@github.com:silverwind/pagediff.git
$ cd pagediff
$ npm i
$ ./server.js

API

pagediff(a, b, w, h, delay)

  • a URL or domain for the first page
  • b URL or domain for the second page
  • w width of the generated images
  • h height of the generated images
  • delay delay in seconds after which to take the screenshot

Returns a Promise that resolves to an object with the following properties:

  • a path to the first rendered image
  • b path to the second rendered image
  • diff path to the diff image
  • perc percentage of different pixels between images

On error, the Promise will be rejected with:

  • err Error string and/or stack trace

Go to http://localhost:4000 and enter domains or URLs to compare.

© 2014-2015 silverwind, distributed under BSD licence