# wwwdiff

> wwwdiff is a simple CLI tool to make a diff image between 2 web pages

Latest version **1.6.1** (published 2020-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install wwwdiff
pnpm add wwwdiff
yarn add wwwdiff
bun add wwwdiff
```

Provides the command `wwwdiff`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.6.1 |
| Published | 2020-05-16 |
| First published | 2020-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | kamataryo |
| Maintainers | kamataryo |
| Keywords | png, image, diff, web |

## Links

- npm: https://www.npmjs.com/package/wwwdiff
- Repository: https://github.com/kamataryo/wwwdiff
- Homepage: https://github.com/kamataryo/wwwdiff#readme
- Issues: https://github.com/kamataryo/wwwdiff/issues
- npm.io page: https://npm.io/package/wwwdiff

## Dependencies (3)

- [meow](https://npm.io/package/meow.md) ^6.1.0
- [puppeteer](https://npm.io/package/puppeteer.md) ^3.0.0
- [looks-same](https://npm.io/package/looks-same.md) ^7.2.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.6.1 (latest) — 2020-05-16
- 1.6.0 — 2020-05-16
- 1.5.1 — 2020-05-15
- 1.5.0 — 2020-05-13
- 1.4.1 — 2020-05-11
- 1.4.0 — 2020-05-09
- 1.3.0 — 2020-05-09
- 1.2.2 — 2020-05-09
- 1.2.1 — 2020-05-09
- 1.2.0 — 2020-04-24
- 1.1.10 — 2020-04-23
- 1.1.9 — 2020-04-23
- 1.1.8 — 2020-04-23
- 1.1.6 — 2020-04-22
- 1.1.5 — 2020-04-22
- … 5 more at https://npm.io/package/wwwdiff/versions

## README

# wwwdiff

![https://github.com/kamataryo/wwwdiff/actions](https://github.com/kamataryo/wwwdiff/workflows/npmpublish/badge.svg)

wwwdiff is a simple CLI tool to make a diff image between 2 web pages.

## Prerequisite

- Node.js > 10

## Usage

```shell
$ npm install -g wwwdiff
$ wwwdiff https://example.com/a https://examle.com/b > sample.png
```

Or you can use `wwwdfiff` via `npx`, perhaps it downloads Chromium browser (120MB) for every time.

```shell
$ npx wwwdiff https://example.com/a https://examle.com/b > sample.png
```

## Example

Example with 2 WordPress posts.

| Sample A                    | Sample B                    | Diff                              |
| :-------------------------- | :-------------------------- | :-------------------------------- |
| ![sample a](./sample-a.png) | ![sample b](./sample-b.png) | ![diff sample](./sample-diff.png) |

## options

```shell
$ wwwdiff -h

  wwwdiff is a simple CLI tool to make a diff image between 2 web pages.

  Usage
    $ wwwdiff https://example.com/a https://example.com/b > diff.png
  Options
    --color, -c <color>       hightlighting color. The default is #ff00ff.
    --delay, -d <millisecond> duration until shot. The default value is 0.
    --output, -o <file path>  Use specified file path as output, not sdtout.
    --width, -w <width>       viewport width.
    --verbose                 shows debug messages.
```

### Tips

You can take a single screenshot with one URL argument.

```shell
$ wwwdiff https://example.com/a > example.png
```

### Examples with options

```shell
# Wait 10 seconds before taking screenshots.
$ wwwdiff --delay 10000 https://example.com/a https://example.com/b > diff.png
```

```shell
# Specify output file with option, not using stdout.
$ wwwdiff https://example.com/a https://example.com/b --output diff.png
```

```shell
# Use specified width for viewport..
$ wwwdiff --width 680 https://example.com/a https://example.com/b > diff.png
$ wwwdiff --width 2048 https://example.com/a https://example.com/b > diff.png
```

```shell
# show debug infomation.
$ wwwdiff --verbose https://example.com/a https://example.com/b > diff.png
```

---
_Source: https://npm.io/package/wwwdiff · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
