Registry / testing / tap-nyc

tap-nyc

JSON →
library1.0.3jsnpmunverified

tap-nyc is a TAP output formatter designed to pair seamlessly with nyc (Istanbul's CLI coverage tool) and the Tape testing framework. Version 1.0.3 is the current stable release; no longer actively developed. It formats TAP output into a clean summary, suppressing verbose details on success and showing failures inline. Unlike standard TAP formatters (e.g., tap-spec, faucet), tap-nyc avoids errors and overlapping output with nyc's coverage report, providing a minimal view when tests pass.

npm install tap-nyc
INSTALL
IMPORT
SIG · TAP-NYC
T
tap-nyc
testingjavascriptv1.0.3
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.

default (the formatter is used as a CLI tool, not a library)
nyc tape tests/*.js | npx tap-nyc
tap-nyc is a command-line tool, not a library. There are no JavaScript imports; it's piped after a TAP-producing command.

Installs tap-nyc as a dev dependency and sets up a test script that runs Tape tests with nyc coverage, piping TAP output to tap-nyc for formatted output.

npm install --save-dev tap-nyc # Then in package.json: { "scripts": { "test": "nyc tape tests/*.js | tap-nyc" } } # Run tests using: npm test
Debug
Known issues
gotchatap-nyc expects TAP input on stdin; no input or invalid TAP will produce no output.
fix
Ensure you pipe a TAP-producing command (e.g., `nyc tape tests/*.js | tap-nyc`).
affects: >=1.0.0
gotchaSome TAP producers (e.g., Tape) may include diagnostics that tap-nyc filters out; this might hide useful info.
fix
Use `--nyc-output` flag if you need to see nyc's coverage report separate from TAP summary.
affects: >=1.0.0
deprecatedtap-nyc is no longer actively maintained since 2020; it may not support newer nyc or Tape versions.
fix
Consider alternatives like `tap` with built-in coverage or `tap-dot` with nyc.
affects: >=1.0.0
Errors
Common errors & fixes
bash: tap-nyc: command not found
tap-nyc is not installed globally or not found in PATH.
fix
Ensure it's installed locally (`npm install --save-dev tap-nyc`) and reference it via npx: `npx tap-nyc` or use the package.json script.
Error: Cannot find module 'tap-nyc'
Attempting to require tap-nyc in a Node.js script, but it's a CLI tool.
fix
Use tap-nyc as a command-line tool only. No require() needed.
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

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