This is a command-line tool aimed to compare visual differences of files and generate test reports.
npm install @pixdif/cli
npm install @pixdif/png-parser # If you need to compare PNG images.
npm install @pixdif/pdf-parser # If you need to compare PDF documents.
npm install @pixdif/html-reporter # If you need to generate a test report into a web page.
Compare two files.
pixdif cmp <expected> <actual>
Convert a file (e.g. PDF) into multiple PNG images.
pixdif convert <input>
Compare some files in 2 directories.
pixdif diff <expected directory> <actual directory> <file glob pattern>
Start a server to view test reports and update baselines.
pixdif serve
Check more details with --help
. It's powered by and documented with yargs.
pixdif --help
pixdif <command> --help