tap-junit is a CLI tool and module that converts TAP (Test Anything Protocol) output into JUnit XML format, primarily for CI/CD systems like Jenkins. Current stable version is 5.0.4, with occasional releases. It works with any TAP-producing test framework (tape, tap, etc.) and supports piping or file input. Key differentiators: lightweight, zero dependencies, customizable suite/class names, and pretty-printing option. Compared to alternatives like tap-xunit or tap2junit, tap-junit is simpler and more actively maintained.
npm install tap-junitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows both CLI pipe usage and programmatic transform with TAP input to JUnit XML conversion.
Upgrade Node.js to >=12 or stay on 3.x
Use import or dynamic import() instead of require.
Use --input <file> instead of --file.
Omit --output to print to stdout.
Use the TransformStream class for piping TAP data.
Change to import statement or use dynamic import: const tapJunit = await import('tap-junit');Install locally: npm i -D tap-junit and use npx tap-junit or the full path to ./node_modules/.bin/tap-junit
Use: import { transform } from 'tap-junit';Import directly from 'tap-junit': import { transform } from 'tap-junit';No dependency data recorded yet.