smart-byte-quiz v0.0.2
Smart Byte Quiz CLI Tool
Smart Byte Quiz is an npm CLI tool designed for developers to enjoy trivia quizzes conveniently, whether during compilation, CI/CD pipelines, or while running tests. It fetches trivia questions from 'The Trivia API', offering a customizable quiz experience tailored to your preferences.
Features
- Customizable Quizzes : Configure settings such as difficulty levels, number of questions per quiz, and allowed categories.
- Wide Range of Topics : Enjoy quizzes from a variety of categories provided by 'The Trivia API'.
- Persistent Configuration : Settings are stored in a
smart-byte-quiz_config.jsonfile in your home directory, allowing easy customization.
Usage
- Installation :
npm install -g smart-byte-quiz- Running the Tool :
npx smart-byte-quizThis command initializes the tool and opens the settings menu where you can configure:
- Difficulty Levels: Choose from
easy,medium, orhard. (Default: []) - Number of Questions: Set the desired number of questions per quiz (1 to 50). (Default: 10)
- Allowed Categories: Select from available categories below. (Default: [])
musicsport_and_leisurefilm_and_tvarts_and_literaturehistorysociety_and_culturesciencegeographyfood_and_drinkgeneral_knowledge
Note: Empty array in the default value means every option is selected for that setting. (All 3 difficulty levels & 10 categories are allowed by default)
Your configuration will be saved in smart-byte-quiz_config.json located in:
- Windows :
%APPDATA% Mac/Linux :
~/.configYou can manually edit this file if needed.
Roadmap
- Implement session management for multiplayer quizzes.
- Integrate features exclusively available to API subscribers.
- Enhance user interface for better interaction and feedback.
Credits
This tool uses the trivia questions provided by The Trivia API. Their service is appreciated for providing extensive trivia question sets.
Feel free to report issues, or suggest improvements on GitHub. Happy quizzing! 🎉