Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

question-cache

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

question-cache - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

3

index.js

@@ -29,2 +29,5 @@ /*!

function Questions(options) {
if (!(this instanceof Questions)) {
return new Questions(options);
}
this.options = options || {};

@@ -31,0 +34,0 @@ define(this, 'inquirer', this.options.inquirer);

2

package.json
{
"name": "question-cache",
"description": "A wrapper around inquirer that makes it easy to create and selectively reuse questions.",
"version": "0.2.3",
"version": "0.2.4",
"homepage": "https://github.com/jonschlinkert/question-cache",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -57,3 +57,3 @@ # question-cache [![NPM version](https://badge.fury.io/js/question-cache.svg)](http://badge.fury.io/js/question-cache)

First things first, question-cache is just a wrapper around [inquirer](https://github.com/sboudrias/Inquirer.js#readme). If you have an issue related to the actual console interface (like scrolling, colors, styling, etc), then please create issues on the [inquirer](https://github.com/sboudrias/Inquirer.js#readme) project.
First things first, question-cache is just a wrapper around [inquirer](https://github.com/sboudrias/Inquirer.js). If you have an issue related to the actual console interface (like scrolling, colors, styling, etc), then please create issues on the [inquirer](https://github.com/sboudrias/Inquirer.js) project.

@@ -99,3 +99,3 @@ **Asking questions**

_(Table of contents generated by [verb](https://github.com/assemble/verb))_
_(Table of contents generated by [verb](https://github.com/verbose/verb))_

@@ -106,3 +106,3 @@ <!-- tocstop -->

### [Questions](index.js#L27)
### [Questions](index.js#L28)

@@ -113,3 +113,3 @@ Create an instance of `Questions` with the given `options`.

* `options` **{Object}**: Pass your instance of [inquirer](https://github.com/sboudrias/Inquirer.js#readme)on the `inquirer` option.
* `options` **{Object}**: Pass your instance of [inquirer](https://github.com/sboudrias/Inquirer.js)on the `inquirer` option.

@@ -123,3 +123,3 @@ **Example**

### [.set](index.js#L51)
### [.set](index.js#L55)

@@ -131,3 +131,3 @@ Store a question object by `key`.

* `key` **{String}**: Unique question id.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js#readme)conventions.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js)conventions.

@@ -144,3 +144,3 @@ **Example**

### [.get](index.js#L79)
### [.get](index.js#L83)

@@ -152,3 +152,3 @@ Get a question by `key`.

* `key` **{String}**: Unique question id.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js#readme)conventions.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js)conventions.

@@ -162,3 +162,3 @@ **Example**

### [.has](index.js#L97)
### [.has](index.js#L101)

@@ -170,3 +170,3 @@ Return true if the given question name is stored on question-cache.

* `key` **{String}**: Unique question id.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js#readme)conventions.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js)conventions.

@@ -180,3 +180,3 @@ **Example**

### [.resolve](index.js#L110)
### [.resolve](index.js#L114)

@@ -191,3 +191,3 @@ Returns an array of question objects from an array of keys. Keys

### [.toQuestion](index.js#L151)
### [.toQuestion](index.js#L155)

@@ -205,3 +205,3 @@ Create a question object from a string. Uses the `input` question type, and does the following basic normalization:

### [.ask](index.js#L175)
### [.ask](index.js#L179)

@@ -213,3 +213,3 @@ Ask a question or array of questions.

* `key` **{String}**: Unique question id.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js#readme)conventions.
* `value` **{Object}**: Question object that follows [inquirer](https://github.com/sboudrias/Inquirer.js)conventions.

@@ -223,5 +223,5 @@ **Example**

### [.prompt](index.js#L218)
### [.prompt](index.js#L222)
Exposes the `prompt` method on [inquirer](https://github.com/sboudrias/Inquirer.js#readme)as a convenience.
Exposes the `prompt` method on [inquirer](https://github.com/sboudrias/Inquirer.js)as a convenience.

@@ -360,9 +360,10 @@ **Params**

* [ask-once](https://github.com/doowb/ask-once): Only ask a question one time and store the answer.
* [generate](https://github.com/generate/generate): Project generator, for node.js.
* [question-helper](https://github.com/doowb/question-helper): Template helper that asks a question in the command line and resolves the template with… [more](https://github.com/doowb/question-helper)
* [ask-for-github-auth](https://www.npmjs.com/package/ask-for-github-auth): Prompt a user for their github authentication credentials and save the results. | [homepage](https://github.com/doowb/ask-for-github-auth)
* [ask-once](https://www.npmjs.com/package/ask-once): Only ask a question one time and store the answer. | [homepage](https://github.com/doowb/ask-once)
* [generate](https://www.npmjs.com/package/generate): Project generator, for node.js. | [homepage](https://github.com/generate/generate)
* [question-helper](https://www.npmjs.com/package/question-helper): Template helper that asks a question in the command line and resolves the template with… [more](https://www.npmjs.com/package/question-helper) | [homepage](https://github.com/doowb/question-helper)
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/question-cache/issues/new)
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/question-cache/issues/new).

@@ -383,2 +384,2 @@ ## Author

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 15, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 29, 2015._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc