Skip to content
Prompts asked when initializing a new cortex project.
JavaScript Makefile
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE-MIT
Makefile
README.md
index.js
package.json

README.md

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'
});
Something went wrong with that request. Please try again.