dify-bin
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    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

    Install

    npm i dify-bin

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    3.73 kB

    Total Files

    7

    Last publish

    Collaborators

    • jihchi