https://github.com/nawodyaishan/node-ts-cli
A TypeScript Command Line Interface (CLI) game called "Who wants to be a TypeScript Genius?".
https://github.com/nawodyaishan/node-ts-cli
command-line-interface inquirerjs trivia-game
Last synced: 7 months ago
JSON representation
A TypeScript Command Line Interface (CLI) game called "Who wants to be a TypeScript Genius?".
- Host: GitHub
- URL: https://github.com/nawodyaishan/node-ts-cli
- Owner: nawodyaishan
- Created: 2023-05-17T15:28:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T18:16:13.000Z (over 2 years ago)
- Last Synced: 2025-01-21T20:49:16.312Z (9 months ago)
- Topics: command-line-interface, inquirerjs, trivia-game
- Language: TypeScript
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-ts-cli
### Description
A TypeScript Command Line Interface (CLI) game called "Who wants to be a TypeScript Genius?".
### Repository
- Repository: [nawodyaishan/node-ts-cli](https://github.com/nawodyaishan/node-ts-cli.git)
### Installation
1. Clone the repository:
```bash
git clone https://github.com/nawodyaishan/node-ts-cli.git
```2. Navigate to the project directory:
```bash
cd node-ts-cli
```3. Install the dependencies:
```bash
npm install
```### Usage
Run the following command to start the game:
```bash
npm run dev
```### Game Description
The "Who wants to be a TypeScript Genius?" game is a command-line game implemented in TypeScript. It presents questions to the player and checks their answers. The game includes the following features:
- Displays a colorful welcome message using the `chalk-animation` library.
- Asks the player for their name using the `inquirer` library.
- Asks the player a question about the Sri Lankan World Cup year using the `inquirer` library.
- Checks the player's answer and displays a success or failure message using the `nanospinner` library.
- If the player answers correctly, displays a congratulations message using the `figlet` and `gradient-string` libraries.