0.6.1 • Published 8 years ago

@silverwind/pagediff v0.6.1

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
8 years ago

pagediff

npm.io npm.io npm.io

Visually diff websites

Preview

npm.io

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

0.6.1

8 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago