cortex-init-prompts

1.0.3 • Public • Published

cortex-init-prompts NPM version Build Status Dependency Status

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. 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'
});

Package Sidebar

Install

npm i cortex-init-prompts

Weekly Downloads

27

Version

1.0.3

License

MIT

Last publish

Collaborators

  • spud
  • kael