Inquirer prompts that can be overriden with provided answers
$ npm install @form8ion/overridable-prompts --save-prod
import {prompt} from '@form8ion/overridable-prompts';
const answers = await prompt(
[
{
name: 'Question #1',
message: 'What should we ask first?'
},
{
name: 'Question #2',
message: 'What should we ask second?',
when: answerList => 'Provided answer for `Question #1`' === answerList['Question #1']
}
],
{
'Question #1': 'Provided answer for `Question #1`',
'Question #2': 'Provided answer for `Question #2`'
}
);
$ nvm install
$ npm install
$ npm test