dify-bin
v0.1.0
Published
dify wrapper that makes it seamlessly available as a local dependency
Downloads
27
Maintainers
Readme
dify-bin
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