question-store plugin that adds a
forcemethod to easily force questions with stored answers to be re-asked.
Install with npm:
$ npm i question-force --save
var force = require('question-force');
var Questions = require('question-store');
var questions = new Questions();
// register the plugin
questions.use(force());
// pre-load answer data from package.json and
// set some questions to ask
questions.setData(require('./package'))
.set('author.name', 'Author name?')
.set('author.username', 'Author username?')
.set('author.url', 'Author url?')
.set('project.name', 'What is the project name?')
.set('project.desc', 'What is the project description?');
// always force questions that start with `project`
questions.force(/^project/)
.ask(function(err, answer) {
console.log(answer)
});
You might also be interested in these projects:
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 28, 2016.