Plugin for question-store that adds a `force` method for easily forcing questions with stored answers to be re-asked.
Last updated 4 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install question-force 
SYNC missed versions from official npm registry.

question-force NPM version Build Status

question-store plugin that adds a force method 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

// pre-load answer data from package.json and 
// set some questions to ask
  .set('', 'Author name?')
  .set('author.username', 'Author username?')
  .set('author.url', 'Author url?')

  .set('', 'What is the project name?')
  .set('project.desc', 'What is the project description?');

// always force questions that start with `project`
  .ask(function(err, answer) {

Related projects

You might also be interested in these projects:

  • answer-store: Store answers to user prompts, based on locale and/or current working directory. | homepage
  • question-cache: A wrapper around inquirer that makes it easy to create and selectively reuse questions. | homepage
  • question-store: Ask questions, persist the answers. Basic support for i18n and storing answers based on current… more | homepage

Running tests

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.

Current Tags

  • 0.1.0                                ...           latest (4 years ago)

1 Versions

  • 0.1.0                                ...           4 years ago
Maintainers (1)
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 1
Last Month 4
Dependencies (2)
Dev Dependencies (3)
Dependents (0)

Copyright 2014 - 2016 © |