{"id":13827178,"url":"https://github.com/tkellen/js-matchdep","last_synced_at":"2025-04-04T16:13:06.900Z","repository":{"id":5679083,"uuid":"6889069","full_name":"tkellen/js-matchdep","owner":"tkellen","description":"Use micromatch to filter npm module dependencies by name.","archived":false,"fork":false,"pushed_at":"2018-11-05T14:08:24.000Z","size":26,"stargazers_count":99,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T13:36:55.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkellen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-27T19:04:39.000Z","updated_at":"2025-02-28T03:02:21.000Z","dependencies_parsed_at":"2022-09-05T16:51:51.745Z","dependency_job_id":null,"html_url":"https://github.com/tkellen/js-matchdep","commit_stats":null,"previous_names":["tkellen/node-matchdep"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellen%2Fjs-matchdep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellen%2Fjs-matchdep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellen%2Fjs-matchdep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellen%2Fjs-matchdep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkellen","download_url":"https://codeload.github.com/tkellen/js-matchdep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326599,"owners_count":20759436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:01:51.601Z","updated_at":"2025-04-04T16:13:06.879Z","avatar_url":"https://github.com/tkellen.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# matchdep [![Build Status](https://secure.travis-ci.org/tkellen/js-matchdep.svg?branch=master)](http://travis-ci.org/tkellen/js-matchdep)\n\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkellen%2Fjs-matchdep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkellen%2Fjs-matchdep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkellen%2Fjs-matchdep/lists"}