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

diffity-node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diffity-node

Node.js integration for diffity service

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

diffity

Commandline utility for Diffity

Install

npm install -g diffity-node

Sample Usage

// 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

Keywords

FAQs

Package last updated on 07 Sep 2018

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