TAP output formatter that uses difflet to provide visual diffing for inequality errors. Version 0.7.2 is the latest stable release. The package has been in maintenance mode since around 2015 with no recent updates. It is CLI tool that pipes TAP output from test runners like tape or mocha and formats results with colored diffs. Supports options like pessimistic mode to show only failures. Unlike other TAP reporters, it focuses on providing clear visual diffs for failing assertions.
npm install tap-diffletNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates CLI usage with tape and programmatic usage inside Node.js code.
Consider alternatives like tap-spec or faucet.
Use tape, node-tap, or configure mocha to output TAP.
To capture all output, redirect stderr: `tape test/*.js | tap-difflet 2>&1`
Run `npm install tap-difflet --save-dev` or `npm install -g tap-difflet`.
Use `const tapDifflet = require('tap-difflet');` instead of `import tapDifflet from 'tap-difflet';`Ensure your test runner outputs valid TAP format. Use `tape` or `node-tap`.