question-cache is a wrapper around inquirer for creating and reusing prompts in CLI applications, with support for caching answers and conditional questions. Version 0.7.0 is the latest stable release, though development appears to have slowed. Unlike raw inquirer, it provides a fluent API via .set() and .ask(), answer caching, and lifecycle hooks (ask/answer events). It depends on data-store for caching and uses inquirer2 by default.
npm install question-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup and usage: create a Questions instance, set questions, and ask them with a callback.
Consider using inquirer directly if you need active maintenance.
Always provide a callback to .ask() for reliable execution.
Use var questions = require('question-cache')(); or var Questions = require('question-cache'); new Questions();