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

hazard-qna

v1.2.1

Published

Question-Answer based CLI game for JavaScript

Readme

ProLang Slayer 🧠🔥

ProLang Slayer is a powerful command-line quiz application designed to challenge and improve your knowledge of popular programming languages including JavaScript, Python, and C.

Engage in a vibrant terminal interface, test your coding wits, and survive a thrilling code-slaying experience — but beware: one wrong answer and it’s Game Over!


🚀 Features

  • Language Selection: Choose between JavaScript, Python, or C.
  • Randomized Questions: Shuffled using the Fisher-Yates algorithm for a unique experience every time.
  • Interactive CLI: Built with inquirer, styled using chalk, chalk-animation, and gradient-string.
  • Scoring System: Earn a point for each correct answer.
  • Sudden Death: A single incorrect answer ends the game.
  • Victory Screen: Celebrate with styled ASCII art and final score display.
  • Multiple Choice Format: Consistent and beginner-friendly.
  • Cross-Language Support: 10 curated questions per language, covering basic to advanced concepts.

🛠 Prerequisites

  • Node.js: Version 14 or higher
  • npm: To install and manage dependencies

⚡ Installation

Run Instantly (Recommended)

Use npx to run without installing:

npx hazard-qna

Local Installation (For Developers)

git clone <repository-url>
cd prolang-slayer
npm install chalk inquirer gradient-string chalk-animation figlet nanospinner console-clear

Optional global installation:

npm install -g hazard-qna

📁 Project Structure

prolang-slayer/
├── index.js          # Main application logic
├── javascript.js     # JavaScript question set
├── python.js         # Python question set
├── C.js              # C language question set

🎮 Usage

You can run the app in three different ways:

1. Instantly via npx (most convenient):

npx hazard-qna

2. Locally:

node index.js

3. Globally (if installed with -g):

hazard-qna

🧑‍💻 How to Play

  1. Launch the app.
  2. Select a programming language: C, JavaScript, or Python.
  3. Enter your name (optional).
  4. Answer each question correctly to proceed.
  5. One wrong answer = Game Over.

📸 Example Output

Welcome to ProLang Slayer
🔥 Code Quiz Challenge 🔥
Welcome! I'm a vibrant process ready to test your JavaScript or Python prowess. 💻
Choose your language and answer the question with precision — one error, and it's GAME OVER! 😎
Unleash your inner code ninja, let your dev spirit shine!
Ready for the epic start? Let’s dive in! 🚀

? Choose the language you want to slay >>> JavaScript
? What is your name? Alice
? JavaScript was created in 10 days then released on
✔ Checking answer... Wo-ooh!! Nice work Alice. That's a legit answer

📦 Dependencies


📝 Notes

  • Built on Node.js’s non-blocking event loop.
  • Covers both beginner and intermediate-level programming knowledge.
  • Exits with:
    • Code 0 on success.
    • Code 1 on game over.
  • No score history is saved — fresh start every time.

🤝 Contributing

We welcome all contributions!

  1. Fork the repository.
  2. Create a feature branch.
  3. Add your changes (e.g., new questions, improvements).
  4. Submit a Pull Request with a clear description.

👨‍🎨 Credits

Crafted by 4lex.Riley.90s
Inspired by the passion for coding and interactive CLI experiences.


📄 License

This project is licensed under the MIT License.