{"name":"matchdep","description":"Use micromatch to filter npm module dependencies by name.","version":"2.0.0","homepage":"https://github.com/tkellen/js-matchdep","author":{"name":"Tyler Kellen","url":"http://goingslowly.com/"},"repository":{"type":"git","url":"git://github.com/tkellen/js-matchdep.git"},"bugs":{"url":"https://github.com/tkellen/js-matchdep/issues"},"license":"MIT","main":"lib/matchdep","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt"},"dependencies":{"findup-sync":"^2.0.0","micromatch":"^3.0.4","resolve":"^1.4.0","stack-trace":"0.0.10"},"devDependencies":{"grunt":"^1.0.1","grunt-contrib-jshint":"^1.1.0","grunt-contrib-nodeunit":"^1.0.0"},"keywords":["package.json","dependencies","devDependencies","peerDependencies"],"gitHead":"5d2e1bc61127ec6d0c95019a234daca40d2cb830","_id":"matchdep@2.0.0","_shasum":"c6f34834a0d8dbc3b37c27ee8bbcb27c7775582e","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine@iceddev.com"},{"name":"tkellen","email":"tyler@sleekcode.net"}],"dist":{"shasum":"c6f34834a0d8dbc3b37c27ee8bbcb27c7775582e","tarball":"http://registry-npm.ywwl.com/matchdep/download/matchdep-2.0.0.tgz","integrity":"sha512-LFgVbaHIHMqCRuCZyfCtUOq9/Lnzhi7Z0KFUE2fhD54+JN2jLh3hC02RLkqauJ3U4soU6H1J3tfj/Byk7GoEjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkaTbSozZwT5M/Vp2RyDKCVzvFi94JuxyV0qiWb8nIqAiEAtMnZLMyriA0zyipPtjK8YTHia977GZSDWPiAqJYcPwo="}],"size":3181,"noattachment":false,"key":"/matchdep/-/matchdep-2.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/matchdep-2.0.0.tgz_1503097926853_0.7103664372116327"},"directories":{},"readme":"# matchdep [![Build Status](https://secure.travis-ci.org/tkellen/js-matchdep.svg?branch=master)](http://travis-ci.org/tkellen/js-matchdep)\n> Use [micromatch] to filter npm module dependencies by name.\n\n[![NPM](https://nodei.co/npm/matchdep.png)](https://nodei.co/npm/matchdep/)\n\n## Examples\n\n```js\nvar matchdep = require('matchdep');\n\n// Filter dependencies (by autoloading nearest package.json)\nmatchdep.filter('mini*');\n\n// Filter devDependencies (with config string indicating file to be required)\nmatchdep.filterDev('grunt-contrib-*', './package.json');\n\n// Filter peerDependencies (with config string indicating file to be required)\nmatchdep.filterPeer('foo-{bar,baz}', './some-other.json');\n\n// Filter all dependencies (with explicit config provided)\nmatchdep.filterAll('*', require('./yet-another.json'));\n\n// Filter all dependencies, exclude grunt (multiple matching patterns)\nmatchdep.filterAll(['*','!grunt']);\n```\n\n## Usage\n\n```js\nfilter(pattern, config)\nfilterDev(pattern, config)\nfilterPeer(pattern, config)\nfilterAll(pattern, config)\n```\n\n### pattern\nType: `String|Array`\nDefault: 'none'\n\nA [micromatch] compatible match pattern to filter dependencies.\n\n### config\nType: `String` or `Object`\nDefault: Path to nearest package.json.\n\nIf config is a string, matchdep will attempt to require it.  If it is an object, it will be used directly.\n\n## Release History\n\n* 2017-08-18 - v2.0.0 - Upgrade major versions of dependencies, Upgrade devDeps\n* 2016-02-09 - v1.0.1 - switch to [micromatch], remove [globule]\n* 2015-09-27 - v1.0.0 - throw when no package.json found, update dependencies, remove node 0.8 support\n* 2013-10-09 - v0.3.0 - support multiple pattern matches using [globule]\n* 2013-10-08 - v0.2.0 - refactor and support filtering peerDependencies\n* 2012-11-27 - v0.1.0 - initial release\n\n\n[globule]: https://github.com/cowboy/node-globule\n[micromatch]: https://github.com/jonschlinkert/micromatch\n","publish_time":1503097926959,"_cnpm_publish_time":1503097926959,"dist-tags":{"latest":"2.0.0"}}