{"_id":"matchkeys","_rev":"17-c57d6f379538f94bbec24e5844e85c69","name":"matchkeys","description":"Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"matchkeys","description":"Return the resolved filepaths to named npm module dependencies based on keywords in package.json. Minimatch patterns can be used, and Lo-Dash templates can be used to load filepaths into Grunt config.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/matchkeys","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/matchkeys/blob/master/LICENSE-MIT"}],"main":"matchkeys.js","engines":{"node":">= 0.8.0"},"dependencies":{"lodash":"~1.3.1","chalk":"~0.2.1","resolve-dep":"~0.1.2"},"devDependencies":{"node-foo":"*"},"keywords":["foo","bar","files","lodash","glob","chalk","grunt config","load-grunt-tasks","grunt","matchdep","lo-dash templates","load","lodash templates","match","minimatch","pattern","require resolve","require","resolve file paths","resolve node module","resolve npm module","resolve paths","resolved filepath"],"_id":"matchkeys@0.1.0","dist":{"shasum":"c1781a52c746da4b14457ad3807d17b37994a101","tarball":"https://registry.npmjs.org/matchkeys/-/matchkeys-0.1.0.tgz","integrity":"sha512-gSaMguQeB8agR3GeGR/6orK/mGZMzeuY2LPPc4gVHmiSr9NBWfiJO+5nn9fEFK1a8XkHEmIaIXrT745kEr1/Yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT1k6F2ZrklvUUrnspWzTShFD/WOS4pgj6BPynxajKZAIhAOjFJhzLHC6tTLrKUt0wb0y4EO8MM2VisBnrgC2vCFZx"}]},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}]},"0.1.1":{"name":"matchkeys","description":"Package.json utility for matching, comparing or filtering keywords against one or more arrays of keywords.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/matchkeys","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/matchkeys/blob/master/LICENSE-MIT"}],"main":"matchkeys.js","engines":{"node":">= 0.8.0"},"dependencies":{"lodash":"~1.3.1","resolve-dep":"~0.1.2"},"devDependencies":{"node-foo":"*"},"keywords":["keywords","filter","match","pattern","require resolve","require","resolve file paths","resolve node module","resolve npm module","resolve paths","resolved filepath"],"_id":"matchkeys@0.1.1","dist":{"shasum":"14c9a32da8d84d47fcc2fd4f5980c75d61770c53","tarball":"https://registry.npmjs.org/matchkeys/-/matchkeys-0.1.1.tgz","integrity":"sha512-O4+XDgh7z82X78xYU1zQDnYHpIEexPMbFynp8YYMQJjYd+QR/1gUk/uLkmRMLOi3vwY4li/F4NpAQ16JBPRyNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAW5WT4DqpfBT9AmJV0PaudaYuilx4ZA7JjGsMYBi5mlAiEA2l6iZ4qHpo626Fu2VXu2bON50/2g0SlteS56fil9qoY="}]},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}]},"0.1.2":{"name":"matchkeys","description":"Package.json utility for matching, comparing or filtering keywords against one or more arrays of keywords.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/matchkeys","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/matchkeys/blob/master/LICENSE-MIT"}],"main":"matchkeys.js","engines":{"node":">= 0.8.0"},"dependencies":{"lodash":"~1.3.1","resolve-dep":"~0.1.3","matchdep":"~0.1.2","chalk":"~0.2.1"},"devDependencies":{"node-foo":"*"},"keywords":["keywords","filter","match","pattern","require resolve","require","resolve file paths","resolve node module","resolve npm module","resolve paths","resolved filepath"],"_id":"matchkeys@0.1.2","dist":{"shasum":"a2b43de2b6d5e1d8ec19b98136ece2688b710412","tarball":"https://registry.npmjs.org/matchkeys/-/matchkeys-0.1.2.tgz","integrity":"sha512-P6vOpXqaZTGmk1FCH9bKNSnfAgMHy6Cn3TTv0y9qEE8ZtFjzYLrS6jfZ1E6YpY5xTh0YuVg3L9Wg2qtbouen2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6h8oVf7xEQJvIxdLAdKEiE5iVDuQAttZ7U3JtPfAdWAiEA507H3BwuAHOtFWq4/PRcMDp2HkBy1UIeY0k3knhD35M="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}]},"0.1.3":{"name":"matchkeys","description":"Package.json utility for matching, comparing or filtering keywords against one or more arrays of keywords.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/matchkeys","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/matchkeys/blob/master/LICENSE-MIT"}],"main":"matchkeys.js","engines":{"node":">= 0.8.0"},"dependencies":{"lodash":"~1.3.1","resolve-dep":"~0.1.3","matchdep":"~0.1.2","chalk":"~0.2.1"},"devDependencies":{"node-foo":"*","grunt-contrib-jshint":"~0.6.4","grunt":"~0.4.1","grunt-readme":"~0.1.8"},"keywords":["keywords","filter","match","pattern","require resolve","require","resolve file paths","resolve node module","resolve npm module","resolve paths","resolved filepath"],"_id":"matchkeys@0.1.3","dist":{"shasum":"ea82d4e182cc3c305a00105debee07a99b82781e","tarball":"https://registry.npmjs.org/matchkeys/-/matchkeys-0.1.3.tgz","integrity":"sha512-jZVR6zxnseDZJK3OfRg0XhJVXNwrM9pKvM7HmLMtJ7OPQnu/opiaKRy+DOU3iHOuiXAtGsGBo8LtCdaWUWP+kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjvv9PI4AIzXWmrGzHoytv+ARcRAdPjLDSJj1TuzPY/wIgIozaEcXTumhNNKWtI3VDLazRYdXGlPF+sZrRKtAQ1qQ="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}]},"0.2.0":{"name":"matchkeys","description":"Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/matchkeys","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/matchkeys/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"keywords":["filepath","filter","key","keys","keyword","keywords","match","module","node","npm","package","package.json","paths","pattern","pkg","require","resolve","resolved"],"dependencies":{"lodash":"~2.4.1","matched":"^0.1.1"},"devDependencies":{"chai":"~1.9.1","mocha":"*","verb":"~0.2.6","verb-tag-jscomments":"^0.1.2"},"scripts":{"test":"mocha -R spec"},"_id":"matchkeys@0.2.0","_shasum":"bf2904d0c08a52130e2ed4d240606def828f98f7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bf2904d0c08a52130e2ed4d240606def828f98f7","tarball":"https://registry.npmjs.org/matchkeys/-/matchkeys-0.2.0.tgz","integrity":"sha512-49vJ+jzLm2eNvx0EWczPraTRbVfeXvmS4wZ5mXOQX17B2AyKVUyC6/KV95pQs7I3a6zTtDLB8CAmWa/ELDuCsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBIGTeUjGnII3dR/q8qQtFETrJMDTJY0847HECWmFwyAiAWNmhdntuhsqOtLnhVk5v5thi5OWl82uSNNNPr6CbB5A=="}]}},"0.2.1":{"name":"matchkeys","description":"Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/matchkeys","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/matchkeys/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"keywords":["filepath","filter","key","keys","keyword","keywords","match","module","node","npm","package","package.json","paths","pattern","pkg","require","resolve","resolved"],"dependencies":{"lodash":"~2.4.1","multimatch":"^0.3.0"},"devDependencies":{"chai":"~1.9.1","mocha":"*","verb":"~0.2.6","verb-tag-jscomments":"^0.1.2"},"scripts":{"test":"mocha -R spec"},"_id":"matchkeys@0.2.1","_shasum":"70b37079752119cfb36c796deef1e87199dba962","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"70b37079752119cfb36c796deef1e87199dba962","tarball":"https://registry.npmjs.org/matchkeys/-/matchkeys-0.2.1.tgz","integrity":"sha512-1oA/p8jO4FdJLH7o3/Q6KD5x/9dmKtWfkYkhhWfqsAO4jErc7kZF1gSdmIioFPEptZfxm5khh0KtvW3fPg6bcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbGXhH0r2Lr2SZ2wfkGmrSRIwMTuRJA5Y/lNX4lHIi5AIgc0LVsDNulw3aJMY0rmDWXzDHByNTuwxWZW5ThGe6iKQ="}]}},"0.2.2":{"name":"matchkeys","description":"Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/matchkeys","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/matchkeys/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"keywords":["filepath","filter","key","keys","keyword","keywords","match","module","node","npm","package","package.json","paths","pattern","pkg","require","resolve","resolved"],"dependencies":{"lodash":"~2.4.1","multimatch":"^0.3.0"},"devDependencies":{"chai":"~1.9.1","mocha":"*","verb":"~0.2.6","verb-tag-jscomments":"^0.1.2"},"scripts":{"test":"mocha -R spec"},"_id":"matchkeys@0.2.2","_shasum":"687fb3d425b8e8f96f59500a9739b2aaded18a51","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"687fb3d425b8e8f96f59500a9739b2aaded18a51","tarball":"https://registry.npmjs.org/matchkeys/-/matchkeys-0.2.2.tgz","integrity":"sha512-9yKdZKdi7/Z8Rk6FfW75nVtFv3/BZW20amfab9p71B6Xzrij/GEQVrXEpbU7FJla+sEhZb7I8ZpAOIg+Z26O2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeGn5Mbjr+0OTDjrMO1W1jFwNPQBSYqIbpBfAljxnIfAiAiDD1y/Zq2eXBOD8WtuV5HfB2QRix2JqGT/41zURVX0w=="}]}}},"readme":"# matchkeys [![NPM version](https://badge.fury.io/js/matchkeys.png)](http://badge.fury.io/js/matchkeys)\n\n> Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.\n\n## Install\nInstall with [npm](npmjs.org):\n\n```bash\nnpm i matchkeys --save-dev\n```\n\n## Usage\n\n```js\nvar matchkeys = require('matchkeys');\n```\n\n### matchkeys ( array, patterns, property )\n\nReturn an array of objects that contain arrays with matching strings. `patterns` may\nbe glob patterns, strings, or an array of glob patterns or strings.\n\n**Example:**:\n\n```js\nvar arr = [\n  {name: 'a', keywords: ['apple', 'orange', 'grape']},\n  {name: 'b', keywords: ['banana', 'orange', 'pineapple']},\n  {name: 'c', keywords: ['watermelon', 'strawberry', 'kiwi']},\n  {name: 'd', keywords: ['watermelon', 'blah']},\n  {name: 'e', keywords: ['watermelon', 'blah', 'lodash']},\n];\nconsole.log(matchkeys(arr, 'apple'));\n//=> [{name: 'a', keywords: ['apple', 'orange', 'grape']}]\n\nconsole.log(matchkeys(arr, 'o*'));\n//=>\n// [\n//   {name: 'a', keywords: ['apple', 'orange', 'grape']},\n//   {name: 'b', keywords: ['banana', 'orange', 'pineapple']}\n// ]\n```\n\n**Params:**\n\n* `array` {Object|Array}:  \n* `patterns` {String|Array}: The glob patterns or strings to use for matching. \n* `prop` {String}: Optionally pass the name of the property to search. \n* `return` {Array} Array of objects with matching strings. \n\n\n### matchkeys.filter ( array, patterns )\n\nWrapper around [multimatch](https://github.com/sindresorhus/multimatch). Returns\nan array of matching strings, from an array or arrays of strings.\n\n**Example:**\n\n```js\nvar keywords = [\n  ['apple', 'orange', 'grape'],\n  ['banana', 'orange', 'pineapple'],\n  ['watermelon', 'strawberry', 'kiwi'],\n  ['watermelon', 'blah'],\n  ['watermelon', 'blah', 'lodash'],\n];\n\nconsole.log(matchkeys.filter(keywords, '{p,b}*'));\n//=> ['banana', 'pineapple', 'blah']\n```\n\n**Params:**\n\n* `array` {Array}: Can be an array or an _array of arrays_. \n* `pattern` {Array|String}: The glob pattern to use. \n* `return` {Array}\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\nCopyright (c) 2014 Jon Schlinkert, contributors.  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 20, 2014._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-19T16:31:03.951Z","created":"2013-09-22T23:30:42.321Z","0.1.0":"2013-09-22T23:30:52.895Z","0.1.1":"2013-09-23T04:28:34.880Z","0.1.2":"2013-09-28T19:38:30.747Z","0.1.3":"2013-10-05T23:18:55.767Z","0.2.0":"2014-06-15T01:03:43.891Z","0.2.1":"2014-06-21T03:41:24.862Z","0.2.2":"2014-06-21T03:53:21.065Z"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/matchkeys.git"},"homepage":"https://github.com/jonschlinkert/matchkeys","keywords":["filepath","filter","key","keys","keyword","keywords","match","module","node","npm","package","package.json","paths","pattern","pkg","require","resolve","resolved"],"bugs":{"url":"https://github.com/jonschlinkert/matchkeys/issues"},"readmeFilename":"README.md"}