1.0.2 • Published 6 months ago

micah-js-quiz v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Micah's JavaScript Quiz

Description

  1. A short interactive command-line game created using pure Vanilla JavaScript

    • You play from your terminal.
    • It's got 5 questions.
    • If you get them all right you win!
    • Free willy to copy and use however you want.
    • I've used a lot of different questions and themes so I'm just leaving it at what it is... Rough and incomplete... kind of like my real life! XD

Getting Started

These instructions are meant as a guide to set up and run "The Quiz" on your local machine. It shouldn't take long at all and you should be playing in no time!

Prerequisites

Before you begin, make sure you have Node.js installed on your system. If not, you can download and install it from Node.js official website.

Installation

To use "The Quiz" in your project, follow these simple steps:

  1. Create or Open Your Project:

    • Open a new window in Visual Studio Code (or whatever code editor you use).
    • Create a new folder for your project or open an existing one.
  2. Initialize Your Project:

    • If your project is new, open the terminal in VS Code and run the following command to create a package.json file:
      npm init -y
  3. Install the Quiz Package:

    • In the terminal, install "My Quiz" by running:
      npm install micah-js-quiz
  4. Run the Quiz:

    • Add a script to your package.json to easily run the quiz:
      "scripts": {
        "run-quiz": "micah-js-quiz"
      }
    • Execute the quiz from the terminal with:

      npm run run-quiz
    • (Alternatively), you can directly execute the quiz on the terminal using:

    npx micah-js-quiz

I hope you enjoy!