{"_id":"answer-store","_rev":"220942","name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:39:55.000Z","created":"2015-11-22T12:33:41.362Z","0.4.0":"2016-02-21T20:42:20.626Z","0.3.1":"2016-02-19T21:26:37.813Z","0.3.0":"2016-02-01T21:47:49.029Z","0.2.1":"2016-01-28T04:28:48.613Z","0.2.0":"2016-01-14T07:41:03.143Z","0.1.3":"2015-12-16T05:17:39.745Z","0.1.2":"2015-11-24T09:27:54.364Z","0.1.1":"2015-11-24T09:25:49.420Z","0.1.0":"2015-11-22T12:33:41.362Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"versions":{"0.4.0":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.4.0","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^2.0.3","has-value":"^0.3.0","lazy-cache":"^1.0.3","project-name":"^0.2.4","resolve-dir":"^0.1.0","rimraf":"^2.5.2","set-value":"^0.3.3","unset-value":"^0.1.1","write-json":"^0.2.2"},"devDependencies":{"assert-fs":"^0.1.0","gulp-format-md":"^0.1.7","mocha":"*"},"keywords":["answer","store"],"verb":{"run":true,"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["ask-once","common-questions","question-cache","question-store"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"6ad343b22ac0aba2337302e81eb70f7062ba42f5","_id":"answer-store@0.4.0","_shasum":"2ab189acc76c786424e88bde76eb3275b458668f","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2ab189acc76c786424e88bde76eb3275b458668f","size":4999,"noattachment":false,"key":"/answer-store/-/answer-store-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/answer-store-0.4.0.tgz_1456087336068_0.5328561160713434"},"directories":{},"publish_time":1456087340626,"_cnpm_publish_time":1456087340626,"_hasShrinkwrap":false},"0.3.1":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^2.0.3","has-value":"^0.3.0","lazy-cache":"^1.0.3","project-name":"^0.2.4","resolve-dir":"^0.1.0","rimraf":"^2.5.2","set-value":"^0.3.3","unset-value":"^0.1.1","write-json":"^0.2.2"},"devDependencies":{"assert-fs":"^0.1.0","gulp-format-md":"^0.1.7","mocha":"*"},"keywords":["answer","store"],"verb":{"run":true,"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["ask-once","common-questions","question-cache","question-store"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"4384ddec0318ede65c14ec4a4591b82f373fc256","_id":"answer-store@0.3.1","_shasum":"f9869c7f9c060df6613889498c8d944427f9a515","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f9869c7f9c060df6613889498c8d944427f9a515","size":5004,"noattachment":false,"key":"/answer-store/-/answer-store-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/answer-store-0.3.1.tgz_1455917194907_0.1349572113249451"},"directories":{},"publish_time":1455917197813,"_cnpm_publish_time":1455917197813,"_hasShrinkwrap":false},"0.3.0":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^2.0.3","has-value":"^0.3.0","lazy-cache":"^1.0.3","project-name":"^0.2.4","resolve-dir":"^0.1.0","rimraf":"^2.5.1","set-value":"^0.3.3","unset-value":"^0.1.1","write-json":"^0.2.2"},"devDependencies":{"assert-fs":"^0.1.0","gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["answer","store"],"verb":{"layout":"default","plugins":["gulp-format-md"],"related":{"list":["ask-once","common-questions","question-cache","question-store"]}},"gitHead":"bdc6850b41920eecf66ed2132e3bd68d8f9d5b86","_id":"answer-store@0.3.0","_shasum":"921b1be0a7a925848c23707072a4bb194ce4f45c","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"921b1be0a7a925848c23707072a4bb194ce4f45c","size":4875,"noattachment":false,"key":"/answer-store/-/answer-store-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/answer-store-0.3.0.tgz_1454363266695_0.2131663786713034"},"directories":{},"publish_time":1454363269029,"_cnpm_publish_time":1454363269029,"_hasShrinkwrap":false},"0.2.1":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","get-value":"^2.0.3","has-value":"^0.3.0","lazy-cache":"^1.0.3","resolve-dir":"^0.1.0","rimraf":"^2.5.1","set-value":"^0.3.3","unset-value":"^0.1.1","write-json":"^0.2.2"},"devDependencies":{"assert-fs":"^0.1.0","gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["answer","store"],"verb":{"layout":"default","plugins":["gulp-format-md"],"related":{"list":["ask-once","common-questions","question-cache","question-store"]}},"gitHead":"8f60ca0c5c33590ff7acba8046e2bd46384276cf","_id":"answer-store@0.2.1","_shasum":"32c5b6a0c8e975ae08ea90f1e204745aedd6be8b","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"32c5b6a0c8e975ae08ea90f1e204745aedd6be8b","size":4787,"noattachment":false,"key":"/answer-store/-/answer-store-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.2.1.tgz"},"directories":{},"publish_time":1453955328613,"_cnpm_publish_time":1453955328613,"_hasShrinkwrap":false},"0.2.0":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","get-value":"^2.0.2","has-value":"^0.3.0","lazy-cache":"^1.0.3","resolve-dir":"^0.1.0","rimraf":"^2.5.0","set-value":"^0.3.2","unset-value":"^0.1.1","write-json":"^0.2.2"},"devDependencies":{"assert-fs":"^0.1.0","gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["answer","store"],"verb":{"layout":"default","plugins":["gulp-format-md"],"related":{"list":["ask-once","common-questions","question-cache","question-store"]}},"gitHead":"2b942b0647add6fafa970ab7082523addbf44f25","_id":"answer-store@0.2.0","_shasum":"ed9363951efbf10171c87e0b8dd979e57f044a07","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ed9363951efbf10171c87e0b8dd979e57f044a07","size":4762,"noattachment":false,"key":"/answer-store/-/answer-store-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.2.0.tgz"},"directories":{},"publish_time":1452757263143,"_cnpm_publish_time":1452757263143,"_hasShrinkwrap":false},"0.1.3":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","get-value":"^2.0.2","has-value":"^0.3.0","lazy-cache":"^1.0.2","resolve-dir":"^0.1.0","rimraf":"^2.4.4","set-value":"^0.3.2","unset-value":"^0.1.1","write-json":"^0.2.2"},"devDependencies":{"assert-fs":"^0.1.0","mocha":"*"},"keywords":["answer","store"],"verb":{"toc":{"render":true,"insert":false},"related":{"list":["ask-once","question-cache"]},"layout":"default","plugins":["gulp-format-md"]},"gitHead":"bc4685feced1b7d95839d3ac886b9b4ba6be8ac6","_id":"answer-store@0.1.3","_shasum":"33003b283f78e5b35e069d0d6b6841366b52559e","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"33003b283f78e5b35e069d0d6b6841366b52559e","size":4525,"noattachment":false,"key":"/answer-store/-/answer-store-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.1.3.tgz"},"directories":{},"publish_time":1450243059745,"_cnpm_publish_time":1450243059745,"_hasShrinkwrap":false},"0.1.2":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"assert-fs":"^0.1.0","mocha":"*"},"keywords":["answer","store"],"verb":{"related":{"list":["question-cache","ask-once"]}},"dependencies":{"extend-shallow":"^2.0.1","get-value":"^2.0.0","has-value":"^0.3.0","lazy-cache":"^0.2.4","resolve-dir":"^0.1.0","rimraf":"^2.4.4","set-value":"^0.3.1","unset-value":"^0.1.1","write-json":"^0.2.2"},"gitHead":"b528aa52bb4f42e53bbdc7e513262cff7ccb25f7","_id":"answer-store@0.1.2","_shasum":"faa2e5e0c56021d8f2055bcf99bf46c1f581061d","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"faa2e5e0c56021d8f2055bcf99bf46c1f581061d","size":4380,"noattachment":false,"key":"/answer-store/-/answer-store-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.1.2.tgz"},"directories":{},"publish_time":1448357274364,"_cnpm_publish_time":1448357274364,"_hasShrinkwrap":false},"0.1.1":{"name":"answer-store","description":"Store answers to user prompts, based on locale and/or current working directory.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"assert-fs":"^0.1.0","mocha":"*"},"keywords":["answer","store"],"verb":{"related":{"list":["question-cache","ask-once"]}},"dependencies":{"extend-shallow":"^2.0.1","get-value":"^2.0.0","has-value":"^0.3.0","lazy-cache":"^0.2.4","resolve-dir":"^0.1.0","rimraf":"^2.4.4","set-value":"^0.3.1","unset-value":"^0.1.1","write-json":"^0.2.2"},"gitHead":"b528aa52bb4f42e53bbdc7e513262cff7ccb25f7","_id":"answer-store@0.1.1","_shasum":"4d7585d0c03bc3d1f8155ad593f8a67733fb7b2d","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"4d7585d0c03bc3d1f8155ad593f8a67733fb7b2d","size":3976,"noattachment":false,"key":"/answer-store/-/answer-store-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.1.1.tgz"},"directories":{},"publish_time":1448357149420,"_cnpm_publish_time":1448357149420,"_hasShrinkwrap":false},"0.1.0":{"name":"answer-store","description":"Ask a question, store the answer.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/answer-store","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/answer-store.git"},"bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^2.0.0","lazy-cache":"^0.2.4","resolve-dir":"^0.1.0","rimraf":"^2.4.4","set-value":"^0.3.1","write-json":"^0.2.2"},"devDependencies":{"mocha":"*"},"verb":{"related":{"list":[]}},"gitHead":"fb599c80d454786d8df571e6316d7f4d063a7ebc","_id":"answer-store@0.1.0","_shasum":"4bd81b77a2e180b34e7240e0ea2da2f9c499cc67","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"4bd81b77a2e180b34e7240e0ea2da2f9c499cc67","size":2009,"noattachment":false,"key":"/answer-store/-/answer-store-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/answer-store/download/answer-store-0.1.0.tgz"},"directories":{},"publish_time":1448195621362,"_cnpm_publish_time":1448195621362,"_hasShrinkwrap":false}},"readme":"# answer-store [![NPM version](https://img.shields.io/npm/v/answer-store.svg)](https://www.npmjs.com/package/answer-store) [![Build Status](https://img.shields.io/travis/jonschlinkert/answer-store.svg)](https://travis-ci.org/jonschlinkert/answer-store)\n\n> Store answers to user prompts, based on locale and/or current working directory.\n\n## TOC\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Related projects](#related-projects)\n- [Contributing](#contributing)\n- [Building docs](#building-docs)\n- [Running tests](#running-tests)\n- [Author](#author)\n- [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i answer-store --save\n```\n\n## Usage\n\n```js\nvar answer = require('answer-store');\n```\n\n**What does this do?**\n\nWith project generators and build systems it's fairly common to prompt the user for information that is needed to complete the build or generate the project.\n\nThis library makes it easy to:\n\n1. Persist the answers to the file system\n2. Store values based on the current working directory\n3. Store defaults that can be used regardless of the directory\n\n**How this works**\n\n* An answer is stored based on the current working directory, and the currently defined `locale`.\n* A `default` answer may be defined for each `locale`\n\nSee the [API docs](#API) for information about setting and getting stores values.\n\n**Example**\n\n```js\nvar answer = new Answer('project-name');\nanswer.set('foo');\n```\n\nResults in the following object being written to `project-name.json` at `'/Users/jonschlinkert/answers/project-name.json'`:\n\n```diff\n{\n  cache:\n   { dest: '/Users/jonschlinkert/answers',\n+     path: '/Users/jonschlinkert/answers/project-name.json',\n     cwd: '/Users/jonschlinkert/dev/answer-store' },\n  options: {},\n  name: 'project-name',\n  data: { \n    en: { \n      '/Users/jonschlinkert/dev/answer-store': 'foo' \n    }\n  }\n}\n```\n\n**locales**\n\nIf the question has been answered for multiple locales, the object would something like this:\n\n```diff\n{\n  cache:\n   { dest: '/Users/jonschlinkert/answers',\n     path: '/Users/jonschlinkert/answers/project-name.json',\n     cwd: '/Users/jonschlinkert/dev/answer-store' },\n  options: {},\n  name: 'project-name',\n+  data: { \n+    en: { '/Users/jonschlinkert/dev/answer-store': 'foo' },\n+    es: { '/Users/jonschlinkert/dev/answer-store': 'bar' },\n+    fr: { '/Users/jonschlinkert/dev/answer-store': 'baz' }\n+  }\n}\n```\n\n**directories**\n\nWhen the question has been answered from different directories, the object might look something like this:\n\n```diff\n{\n  cache:\n   { dest: '/Users/jonschlinkert/answers',\n     path: '/Users/jonschlinkert/answers/project-name.json',\n     cwd: '/Users/jonschlinkert/dev/answer-store' },\n  options: {},\n  name: 'project-name',\n  data: { \n+    en: { \n+      '/Users/jonschlinkert/dev/answer-store/1': 'foo1',\n+      '/Users/jonschlinkert/dev/answer-store/2': 'foo2',\n+      '/Users/jonschlinkert/dev/answer-store/3': 'foo3' \n+    }\n  }\n}\n```\n\n**defaults**\n\nA default value may be stored for each locale:\n\n```diff\n{\n  cache:\n   { dest: '/Users/jonschlinkert/answers',\n     path: '/Users/jonschlinkert/answers/project-name.json',\n     cwd: '/Users/jonschlinkert/dev/answer-store' },\n  options: {},\n  name: 'project-name',\n  data: { \n+    default: 'foo',\n    en: { \n      '/Users/jonschlinkert/dev/answer-store/1': 'foo1',\n      '/Users/jonschlinkert/dev/answer-store/2': 'foo2',\n      '/Users/jonschlinkert/dev/answer-store/3': 'foo3' \n    }\n  }\n}\n```\n\n**What else?**\n\nModule dependencies are lazily required, so initialization is fast!\n\n## API\n\n### [Answer](index.js#L21)\n\nCreate new `Answer` store `name`, with the given `options`.\n\n**Params**\n\n* `name` **{String}**: The answer property name.\n* `options` **{Object}**: Store options\n\n### [.set](index.js#L55)\n\nStore the specified `value` for the current (or given) local, at the current cwd.\n\n**Params**\n\n* `value` **{any}**: The answer value.\n* `locale` **{String}**: Optionally pass the locale to use, otherwise the default locale is used.\n\n**Example**\n\n```js\nanswer.set('foo');\n```\n\n### [.get](index.js#L71)\n\nGet the stored answer for the current (or given) `locale` at the current `cwd`.\n\n**Params**\n\n* `locale` **{String}**: Optionally pass the locale to use, otherwise the default locale is used.\n\n**Example**\n\n```js\nanswer.get(locale);\n```\n\n### [.has](index.js#L86)\n\nReturn true if an answer has been stored for the current (or given) locale at the working directory.\n\n**Params**\n\n* `locale` **{String}**: Optionally pass the locale to use, otherwise the default locale is used.\n\n**Example**\n\n```js\nanswer.has('foo');\n```\n\n### [.del](index.js#L100)\n\nDelete the stored values for the current (or given) locale, at the current cwd.\n\n**Params**\n\n* `locale` **{String}**: Optionally pass the local to delete.\n\n**Example**\n\n```js\nanswer.del(locale);\n```\n\n### [.erase](index.js#L115)\n\nErase all stored values and delete the answer store from the file system.\n\n**Example**\n\n```js\nanswer.erase();\n```\n\n### [.setDefault](index.js#L131)\n\nSet the default answer for the currently defined `locale`.\n\n**Params**\n\n* `locale` **{String}**: Optionally pass the locale to use, otherwise the default locale is used.\n\n**Example**\n\n```js\nanswer.setDefault('foo');\n```\n\n### [.getDefault](index.js#L147)\n\nGet the default answer for the currently defined `locale`.\n\n**Params**\n\n* `locale` **{String}**: Optionally pass the locale to use, otherwise the default locale is used.\n\n**Example**\n\n```js\nanswer.getDefault();\n```\n\n### [.hasDefault](index.js#L161)\n\nReturn true if a value is stored for the current (or given) locale, at the current cwd.\n\n**Params**\n\n* `locale` **{String}**: Optionally pass the locale to use, otherwise the default locale is used.\n\n**Example**\n\n```js\nanswer.hasDefault(locale);\n```\n\n### [.delDefault](index.js#L175)\n\nDelete the stored values for the current (or given) locale.\n\n**Params**\n\n* `locale` **{String}**: Optionally pass the local to delete.\n\n**Example**\n\n```js\nanswer.delDefault(locale);\n```\n\n## Related projects\n\n* [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)\n* [common-questions](https://www.npmjs.com/package/common-questions): An object of questions commonly used by project generators or when initializing projects. Questions can… [more](https://www.npmjs.com/package/common-questions) | [homepage](https://github.com/generate/common-questions)\n* [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)\n* [question-store](https://www.npmjs.com/package/question-store): Ask questions, persist the answers. Basic support for i18n and storing answers based on current… [more](https://www.npmjs.com/package/question-store) | [homepage](https://github.com/jonschlinkert/question-store)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/answer-store/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm i -d && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the [MIT license](https://github.com/jonschlinkert/answer-store/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 21, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/answer-store","bugs":{"url":"https://github.com/jonschlinkert/answer-store/issues"},"license":"MIT"}