# diffity-node

> Node.js integration for diffity service

Latest version **0.0.1** (published 2018-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install diffity-node
pnpm add diffity-node
yarn add diffity-node
bun add diffity-node
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-09-07 |
| First published | 2018-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 4 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Revath S Kumar |
| Maintainers | revathskumar |
| Keywords | diffity |

## Links

- npm: https://www.npmjs.com/package/diffity-node
- Repository: https://github.com/code-mancers/diffity-node
- Homepage: https://github.com/code-mancers/diffity-node#readme
- Issues: https://github.com/code-mancers/diffity-node/issues
- npm.io page: https://npm.io/package/diffity-node

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.18.0
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [form-data](https://npm.io/package/form-data.md) ^2.3.2
- [puppeteer](https://npm.io/package/puppeteer.md) ^1.7.0

## Recent versions

- 0.0.1 (latest) — 2018-09-07

## README

diffity
======================

    Commandline utility for Diffity

### Install

```
npm install -g diffity-node
```

### Sample Usage

```js
// example.js
const Diffity = require('diffity-node');

(async () =>{
  const diffity = new Diffity({
    apiKey: "api-key", apiBaseUrl: 'http://localhost:4000', projectName: 'Diffity Node'
  });
  await diffity.loadUrl('https://www.codemancers.com/why_us/index.html');
  await diffity.screenshot('homepage');

  await diffity.loadUrl('https://www.codemancers.com/portfolio/index.html');
  await diffity.screenshot('portfolio');

  await diffity.loadUrl('https://www.codemancers.com/contact/index.html');
  await diffity.screenshot('contact');

  await diffity.loadUrl('https://crypt.codemancers.com/');
  await diffity.screenshot('blog');

  diffity.end();
})()
```

and run the command

```
DEBUG=diffity:* node example.js
```

License
-------
Please see [License](https://gitlab.com/codemancers/diffity-node/blob/master/License)

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