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

tough-coder

v1.0.3

Published

This package allows you to show up that you're a tough coder by infinetely outputting beatiful structures of random strings and numbers which makes it look like you're running something really cool

Readme

Tough-Coder

Tough-Coder is a CLI tool that infinitely outputs lines of random (or web-sourced) text, giving the appearance that you're running a complex, impressive command. It allows you to control speed, color, lines per tick, probabilities of scenarios, and even pull data from websites.

Installation

npm install -g tough-coder

Usage

Run the command with various parameters:

Parameters Scenarios and Probability:

-P-: Start a new scenario with the given probability (0.1 to 1). The parameters that follow belong to this scenario until another -P is encountered or arguments end. Example:

tough-coder -P-0.5 -s 10 -c r -P-0.1 -s 3 -c y -l 5

This means:

  • 50% chance per tick: Speed=10 lines/sec, color=red, lines=1 (default if not set)
  • 10% chance per tick: Speed=3 lines/sec, color=yellow, 5 lines per tick
  • 40% (remaining probability): fallback scenario (default: speed=1, white color, 1 line)

Speed (-s): Sets how many lines per second. For example, -s 5 means 5 lines/second.

Default: 1

Color (-c): Sets the text color. Options include:

r - red
b - blue
y - yellow
g - green
m - magenta
c - cyan
Default: white

Example: -c y for yellow text.

Lines per Tick (-l): How many lines to print each interval.

Default: 1

URL (-u) and Depth (-d): Fetches words from a given URL and optionally follows links up to a certain depth to gather more words.

If no URL is provided, a default URL inside dataFetcher is used. Depth controls how many levels of links are followed.

Example:


tough-coder -u "https://example.com" -d 2

This crawls example.com and its linked pages (one level deep) to collect words, mixing them into the output.

Examples Simple Default Run:

tough-coder

Prints random lines at speed=1 line/second, white color, infinite loop.

Fast Red Lines:

tough-coder -P-1 -s 10 -c r

Always print at 10 lines/sec, red text.

Multiple Scenarios:

tough-coder -P-0.5 -s 10 -c r -P-0.1 -s 3 -c y -l 5
  • 50% of the time: red and fast
  • 10% of the time: yellow, slower, and more lines
  • 40% fallback: default white, speed=1, 1 line/tick

Using Web Data:

tough-coder -P-1 -s 5 -c g -u "https://example.com" -d 2

Green text at 5 lines/sec, mixing words from example.com and its linked pages (one link depth), with fallback to random words if no data is found.