{"_id":"question-match","_rev":"230869","name":"question-match","description":"Plugin for question-store that adds a `match` method for filtering out questions to ask using glob patterns or regex.","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:00.000Z","created":"2016-01-28T05:31:34.666Z","0.1.2":"2016-03-09T04:19:01.895Z","0.1.1":"2016-01-28T05:34:22.670Z","0.1.0":"2016-01-28T05:31:34.666Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/question-match.git"},"versions":{"0.1.2":{"name":"question-match","description":"Plugin for question-store that adds a `match` method for filtering out questions to ask using glob patterns or regex.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/question-match","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/question-match.git"},"bugs":{"url":"https://github.com/jonschlinkert/question-match/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","micromatch":"^2.3.7"},"devDependencies":{"gulp-format-md":"*","mocha":"^2.4.2","question-store":"^0.4.2"},"keywords":["answer","answers","cli","generate","generator","plugin","prompt","question","question-store","questions","store","yeoman"],"lintDeps":{"ignore":[]},"verb":{"toc":false,"layout":"default","plugins":["gulp-format-md"],"related":{"list":["answer-store","question-cache","question-store"]},"reflinks":["question-force"]},"gitHead":"f6a98e138d3873a8bc2a64e19857302f87944459","_id":"question-match@0.1.2","_shasum":"c0ca176f0e1474e37ab574e6f225474c86442738","_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":"c0ca176f0e1474e37ab574e6f225474c86442738","size":2554,"noattachment":false,"key":"/question-match/-/question-match-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/question-match/download/question-match-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/question-match-0.1.2.tgz_1457497137470_0.37354138190858066"},"directories":{},"publish_time":1457497141895,"_cnpm_publish_time":1457497141895,"_hasShrinkwrap":false},"0.1.1":{"name":"question-match","description":"Plugin for question-store that adds a `match` method for filtering out questions to ask using glob patterns or regex.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/question-match","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/question-match.git"},"bugs":{"url":"https://github.com/jonschlinkert/question-match/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","micromatch":"^2.3.7"},"devDependencies":{"gulp-format-md":"*","mocha":"^2.4.2","question-store":"^0.4.2"},"keywords":["answer","answers","cli","generate","generator","plugin","prompt","question","question-store","questions","store","yeoman"],"lintDeps":{"ignore":[]},"verb":{"toc":false,"layout":"default","plugins":["gulp-format-md"],"related":{"list":["answer-store","question-cache","question-store"]},"reflinks":["question-force"]},"gitHead":"0c02930310493fd51bbfd0d110063ab38da4d9b2","_id":"question-match@0.1.1","_shasum":"b8f48f6fc200d8286de724820117f2af70e5f001","_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":"b8f48f6fc200d8286de724820117f2af70e5f001","size":2550,"noattachment":false,"key":"/question-match/-/question-match-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/question-match/download/question-match-0.1.1.tgz"},"directories":{},"publish_time":1453959262670,"_cnpm_publish_time":1453959262670,"_hasShrinkwrap":false},"0.1.0":{"name":"question-match","description":"Plugin for question-store that adds a `match` method for filtering out questions to ask using glob patterns or regex.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/question-match","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/question-match.git"},"bugs":{"url":"https://github.com/jonschlinkert/question-match/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","micromatch":"^2.3.7"},"devDependencies":{"gulp-format-md":"*","mocha":"^2.4.2","question-store":"^0.4.2"},"keywords":["answer","answers","cli","generate","generator","plugin","prompt","question","question-store","questions","store","yeoman"],"lintDeps":{"ignore":[]},"verb":{"toc":false,"layout":"default","plugins":["gulp-format-md"],"related":{"list":["answer-store","question-cache","question-store"]},"reflinks":["question-force"]},"gitHead":"0c02930310493fd51bbfd0d110063ab38da4d9b2","_id":"question-match@0.1.0","_shasum":"1ff6ea564a145fa9acb25604f17bd2a6a89240e5","_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":"1ff6ea564a145fa9acb25604f17bd2a6a89240e5","size":2542,"noattachment":false,"key":"/question-match/-/question-match-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/question-match/download/question-match-0.1.0.tgz"},"directories":{},"publish_time":1453959094666,"_cnpm_publish_time":1453959094666,"_hasShrinkwrap":false}},"readme":"# question-match [![NPM version](https://img.shields.io/npm/v/question-match.svg)](https://www.npmjs.com/package/question-match) [![Build Status](https://img.shields.io/travis/jonschlinkert/question-match.svg)](https://travis-ci.org/jonschlinkert/question-match)\n\n> Plugin for question-store that adds a `match` method for filtering out questions to ask using glob patterns or regex.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i question-match --save\n```\n\nAlso see [question-force](https://github.com/jonschlinkert/question-force).\n\n## Usage\n\n```js\nvar match = require('question-match');\nvar Questions = require('question-store');\nvar questions = new Questions();\n\n// register the plugin\nquestions.use(match());\n\n// pre-load answer data from package.json and\n// set some questions to ask\nquestions.setData(require('../package'));\n  .set('author.name', 'Author name?')\n  .set('author.username', 'Author username?')\n  .set('author.url', 'Author url?')\n\n  .set('project.name', 'What is the project name?')\n  .set('project.desc', 'What is the project description?');\n\n// only ask questions with keys that match `*.name`\nquestions.match('*.name')\n  .ask(function(err, answer) {\n    console.log(answer)\n  });\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [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)\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## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/question-match/issues/new).\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.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on January 28, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/question-match","bugs":{"url":"https://github.com/jonschlinkert/question-match/issues"},"license":"MIT"}