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