cortex-init-prompts

Prompts asked when initializing a new cortex project.

cortex-init-prompts

Prompts asked when initializing a new cortex project.

npm install cortex-init-prompts --save
var prompts = require('cortex-init-prompts');
  • options Object

    • licenses Array.<String> available licenses.
    • skip Object list of <properties>: <default-value> which should be skipped. And default-value will the be answer of the skipped question.
  • callback function(answers)

  • answers Object the answers of user.

prompts({
  license: ['MIT', 'BSD'],
  skip: {
    author_name: 'Swift'
  }
}, function(answers){
  answers.author_name; // 'Swift' 
});