Skip to content

dify bin-wrapper that makes it seamlessly available as a local dependency

License

Notifications You must be signed in to change notification settings

jihchi/dify-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dify-bin

npm version npm downloads

dify is a fast pixel-by-pixel image comparison tool in Rust.

Install

npm install dify-bin

Usage

const dify = require('dify-bin');

dify(['--output', 'diff.png', 'left.jpg', 'right.jpg'], (err, out) => {
  if (err) {
    if (err.isDifferent) {
      console.log('Changes detected');
    } else {
      console.error(err.stderr);
    }
    process.exit(err.code);
    return;
  }
  console.log('No changes detected', out.stdout);
});

CLI

npx

npx dify-bin --help

Installation

npm install --global dify-bin
dify --help

About

dify bin-wrapper that makes it seamlessly available as a local dependency

Resources

License

Stars

Watchers

Forks

Packages

No packages published