Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including tap-nyc with all npm packages installed. Try it out:

var tapNyc = require("tap-nyc")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

tap-nyc v1.0.3

nyc compatible TAP output formatter


nyc compatible TAP output formatter.

I made this package because I like the Tape testing framework which produces TAP output, but unfortunately the existing TAP formatters I found never played well with the nyc code coverage package as they either produced errors or produced incorrect looking output. Further, I only want to see minimal output from my TAP formatter when all tests pass, as the output from nyc can already be bulky on its own.


To install as a developer dependency:

npm install tap-nyc --save-dev

example usage with tapejs and nyc

Put the following in your package.json:

"scripts": {
  "test": "nyc tape tests/*.js | tap-nyc"

Here's output I get for one of my projects when I run "npm t":

Here's what it looks like when a test fails:


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free