Registry / testing / tap-json

tap-json

JSON →
library1.0.0jsnpmunverified

A simple CLI tool that formats TAP (Test Anything Protocol) output into JSON. Version 1.0.0 is the latest stable release. It is a minimal transformer: pipe TAP input from test runners like tape or mocha and get JSON output. No updates since 2014. It has no dependencies and is primarily used as a CLI reporter.

npm install tap-json
INSTALL
IMPORT
SIG · TAP-JSON
T
tap-json
testingjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tap-json CLI
tape test/*.js | npx tap-json
require('tap-json')
tap-json is a CLI tool, not a library. Attempting to require it will fail since it has no main export.

Shows how to use tap-json as a CLI pipeline to format TAP output from tape into JSON.

// Run tests with tape and format output as JSON tape test/*.js | npx tap-json
Debug
Known issues
gotchatap-json is a CLI tool, not a library. Do not attempt to import or require it in code.
fix
Use it only via pipe on the command line.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'tap-json'
Attempting to require('tap-json') in Node.js code, but the package has no main export.
fix
Use tap-json as a CLI tool: `node test.js | npx tap-json`
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
tap-json — npm install tap-json · libregistry