npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nyanplusreporter

v0.10.4

Published

Nyan Cat Reporter Plus for Mocha

Readme

Nyan Cat Reporter Plus for Mocha

Make unit testing fun. Plays the (in-)famous Nyan cat song while running through your tests. But you need to feed Nyan cat tests. Otherwise it is going to fly off.

Features

  • Play the actual Nyan cat song!
  • Delay console outputs because they make Nyan cat sad.
  • Fix rainbowification (e.g. on Windows <10).

Install

npm install nyanPlusReporter --save-dev

Use

Append, or add to your mocha.opts either

--reporter nyanPlusReporter

or

--reporter path/to/file.without js extension and relative to project root (e.g. "node_modules/nyanPlusReporter/src/nyanPlus")

depending on whether you have installed Mocha locally or globally (see e.g. https://stackoverflow.com/questions/21367820/how-to-create-a-custom-reporter-with-mocha).

Notes

  • You need to have a couple of tests in order to hear anything. That is a feature motivating you to add more tests.

  • The package uses "node-wav-player" because it is cross-platform out of the box.

  • The unit tests use the default reporter in order to avoid audio playback interference.

  • Tested on Win7, Win10, Mac OSX (vm), Debian (vm), Fedora (vm)

Bugs, limitations, caveats, etc

  • Possibly jelous co-workers who do not have as much fun as you do.

  • Possibly annoyed co-workers if you, or they, are in lack of ear phones.

  • There is a ~5MB .wav file.

  • When the song repeats after 26sec there is a noticable interruption.

  • Feature or not, on my Win7 (i5, 8GB) test system, the wav-player needs some time to spin up. The very first run may take some seconds. Consecutive runs may take up to 2 seconds. The wav-player module is only a middle man calling native audio players. So, I am not sure it can be sped up. It gets way better on an i7 with 16GB though.

Versions

0.10.4

  • Added: more error checking

0.10.3

  • Changed: Fix in dependency allows to test playback on Win7 now.

0.10.2

  • Fixed: Published branch to NPM instead of master (I am new to this, sorry.)

0.10.1

  • Added: Ctrl-c flushes console buffer

0.9.1

  • Fixed: Broke the reference instead of emptying it in console flush.
  • Fixed: Added missing assertion.

0.9.0

  • Public release.

Copyright

MIT (c) Joe Kerr 2018

The Nyan Cat song is free for non-commercial use (https://aidn.jp/about/ | accessed 25-Sep-2018).

The license of this package does not include the Nyan Cat song.