inquirer-prompt-exam
v1.1.0
Published
Inquirer.js promt for the test exam
Downloads
6
Maintainers
Readme
inquirer-prompt-exam
Inquirer.js prompt for the test exam
Installation
npm install --save inquirer-prompt-exam
Usage
- Register the prompt:
inquirer.registerPrompt('exam', require('inquirer-prompt-exam'));
- Use it:
inquirer.prompt(questions)([
{
type: 'exam',
name: 'robot',
message: 'Are you robot?',
successAnswer: 'no'
},
{
type: 'exam',
name: 'human',
message: 'Are you human?',
successAnswer: 'yes'
}
]);
Options
successAnswer
(string): correct answer value.
License
MIT