micah-js-quiz
v1.0.2
Published
This is a little Terminal quiz game I made on Tuesday November 7th 2023.
Downloads
2
Maintainers
Readme
Micah's JavaScript Quiz
Description
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:
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.
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
- If your project is new, open the terminal in VS Code and run the following command to create a
Install the Quiz Package:
- In the terminal, install "My Quiz" by running:
npm install micah-js-quiz
- In the terminal, install "My Quiz" by running:
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!