# question-store

> Ask questions, persist the answers. Basic support for i18n and storing answers based on current working directory.

Latest version **0.13.1** (published 2017-03-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install question-store
pnpm add question-store
yarn add question-store
bun add question-store
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.13.1 |
| Published | 2017-03-02 |
| First published | 2015-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Jon Schlinkert |
| Maintainers | doowb, jonschlinkert |
| Keywords | answer, ask, cli, command, command-line, console, create, generate, generator, generators, init, inquirer, menu, project, prompt, prompts, question, questions, scaffold, stdin, store, terminal, tty, util, yeoman |

## Links

- npm: https://www.npmjs.com/package/question-store
- Repository: https://github.com/jonschlinkert/question-store
- Issues: https://github.com/jonschlinkert/question-store/issues
- npm.io page: https://npm.io/package/question-store

## Dependencies (7)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [is-answer](https://npm.io/package/is-answer.md) ^0.1.0
- [data-store](https://npm.io/package/data-store.md) ^0.16.1
- [lazy-cache](https://npm.io/package/lazy-cache.md) ^2.0.1
- [project-name](https://npm.io/package/project-name.md) ^0.2.6
- [common-config](https://npm.io/package/common-config.md) ^0.1.0
- [question-cache](https://npm.io/package/question-cache.md) ^0.7.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.13.1 (latest) — 2017-03-02
- 0.13.0 — 2016-10-01
- 0.12.2 — 2016-08-17
- 0.12.1 — 2016-08-17
- 0.12.0 — 2016-08-17
- 0.11.1 — 2016-07-29
- 0.11.0 — 2016-07-17
- 0.10.0 — 2016-07-11
- 0.9.2 — 2016-04-21
- 0.9.1 — 2016-04-13
- 0.9.0 — 2016-04-13
- 0.8.8 — 2016-04-13
- 0.8.7 — 2016-04-05
- 0.8.6 — 2016-03-11
- 0.8.5 — 2016-03-09
- … 33 more at https://npm.io/package/question-store/versions

## README

# question-store [![NPM version](https://img.shields.io/npm/v/question-store.svg?style=flat)](https://www.npmjs.com/package/question-store) [![NPM downloads](https://img.shields.io/npm/dm/question-store.svg?style=flat)](https://npmjs.org/package/question-store) [![Build Status](https://img.shields.io/travis/jonschlinkert/question-store.svg?style=flat)](https://travis-ci.org/jonschlinkert/question-store)

> Ask questions, persist the answers. Basic support for i18n and storing answers based on current working directory.

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [API](#api)
- [About](#about)
  * [Related projects](#related-projects)
  * [Contributing](#contributing)
  * [Contributors](#contributors)
  * [Building docs](#building-docs)
  * [Running tests](#running-tests)
  * [Author](#author)
  * [License](#license)

_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save question-store
```

Inherits [question-cache](https://github.com/jonschlinkert/question-cache) and persists answers to disk. Answers are stored based on current working directory.

## Usage

```js
var QuestionStore = require('question-store');
```

## API

### [QuestionsStore](index.js#L28)

Create an instance of `QuestionsStore` with the given `options`.

**Params**

* `options` **{Object}**: question store options

**Example**

```js
var QuestionsStore = new QuestionsStore(options);
```

### [.createStores](index.js#L53)

Create stores for persisting data across sessions.

* `globals`: Persist non-project-specific answers when `question.options.global` is true
* `store`: Persist project-specific answers
* `hints`: Persist project-specific hints. This is used to populate the `question.default` value.

**Params**

* `options` **{Object}**
* `returns` **{Object}**

## About

### Related projects

* [answer-store](https://www.npmjs.com/package/answer-store): Store answers to user prompts, based on locale and/or current working directory. | [homepage](https://github.com/jonschlinkert/answer-store "Store answers to user prompts, based on locale and/or current working directory.")
* [base-questions](https://www.npmjs.com/package/base-questions): Plugin for base-methods that adds methods for prompting the user and storing the answers on… [more](https://github.com/node-base/base-questions) | [homepage](https://github.com/node-base/base-questions "Plugin for base-methods that adds methods for prompting the user and storing the answers on a project-by-project basis.")
* [inquirer](https://www.npmjs.com/package/inquirer): A collection of common interactive command line user interfaces. | [homepage](https://github.com/sboudrias/Inquirer.js#readme "A collection of common interactive command line user interfaces.")
* [question-cache](https://www.npmjs.com/package/question-cache): A wrapper around inquirer that makes it easy to create and selectively reuse questions. | [homepage](https://github.com/jonschlinkert/question-cache "A wrapper around inquirer that makes it easy to create and selectively reuse questions.")

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

### Building docs

_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_

To generate the readme and API documentation with [verb](https://github.com/verbose/verb):

```sh
$ npm install -g verb verb-generate-readme && verb
```

### Running tests

Install dev dependencies:

```sh
$ npm install -d && npm test
```

### Author

**Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

### License

Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/jonschlinkert/question-store/blob/master/LICENSE).

***

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 01, 2016._

---
_Source: https://npm.io/package/question-store · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
