1.0.4 • Published 2 years ago

quizgame-cli v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Quiz Game for your terminal

Run it in your terminal and get ready to answer some questions!

The game is using the great free API available at https://opentdb.com/, enjoy.

Usage:

npx quizgame-cli [option]=[value] [option2]=[value2]...[optionN]=[valueN]

Example: npx quizgame-cli -c=sport -a=20 -d=medium

Options:

-h, --help, ?

Shows this help screen. No value required.

-a, --amount

Sets the amount of questions. Defaults to '10'.
Example: -a=15, --amount=3

-d, --difficulty

Sets the questions difficulty. Possible values: 'easy', 'medium', 'hard'. If not passed, loads questions with random difficulties.
Example: -d=easy, --difficulty=medium

-c, --category

Sets the questions category. If not passed, or category does not exist, loads questions from random categories.
Example: -c=sport, --category=math

Note:

Incorrect options and values will not trigger errors and the default values will be used instead.

Have a nice game!

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago