npm i -g terminal-quiz
.- create a text file in
~/.quiz/choices.txt
:- the first line is the question you would like answered.
- each following line is one of the available answers.
- run
terminal-quiz
. - the user's choice will be output to
~/.quiz/answer.txt
.
To see configuration options, simply run:
terminal-quiz --help
ISC