1.0.3 • Published 10 years ago
cortex-init-prompts v1.0.3
cortex-init-prompts

Prompts asked when initializing a new cortex project.
Install
npm install cortex-init-prompts --saveUsage
var prompts = require('cortex-init-prompts');prompts(options, callback)
options
Object- licenses
Array.<String>available licenses. - skip
Objectlist of<properties>: <default-value>which should be skipped. Anddefault-valuewill the be answer of the skipped question.
- licenses
callback
function(answers)- answers
Objectthe answers of user.
prompts({
license: ['MIT', 'BSD'],
skip: {
author_name: 'Swift'
}
}, function(answers){
answers.author_name; // 'Swift'
});