{"_id":"multimatch","_rev":"4276445","name":"multimatch","description":"Extends `minimatch.match()` with support for multiple patterns","dist-tags":{"latest":"8.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-07T19:50:12.000Z","created":"2014-01-15T10:15:44.018Z","8.0.0":"2026-02-20T10:27:53.807Z","7.0.0":"2023-10-27T17:17:23.439Z","6.0.0":"2021-10-18T11:15:23.686Z","5.0.0":"2020-10-12T16:14:46.677Z","4.0.0":"2019-04-22T08:03:14.620Z","3.0.0":"2018-12-19T14:52:32.493Z","2.1.0":"2015-11-14T13:52:12.829Z","2.0.0":"2014-12-22T16:51:58.300Z","1.0.1":"2014-11-23T14:57:33.737Z","1.0.0":"2014-09-22T14:12:29.487Z","0.3.0":"2014-06-21T01:03:15.846Z","0.2.0":"2014-05-19T09:38:36.878Z","0.1.0":"2014-01-15T10:15:44.018Z"},"users":{"stringparser":true,"phoenix-xsy":true,"goliatone":true,"itonyyo":true,"ubenzer":true,"stephen.lautier":true,"larrychen":true,"irj":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/multimatch.git"},"versions":{"8.0.0":{"name":"multimatch","version":"8.0.0","description":"Extends `minimatch.match()` with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/multimatch.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"array-differ":"^4.0.0","array-union":"^3.0.1","minimatch":"^10.2.2"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"0c9465e5ed67a5694d0baa65fc905a9a6e586c0a","types":"./index.d.ts","_id":"multimatch@8.0.0","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch#readme","_nodeVersion":"25.6.0","_npmVersion":"11.8.0","dist":{"shasum":"b07bdd91469abb775e173bb00aa39fabe50acbf4","size":2400,"noattachment":false,"key":"/multimatch/-/multimatch-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-8.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/multimatch_8.0.0_1771583273654_0.7397931444603372"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-20T10:27:53.807Z","publish_time":1771583273807,"_source_registry_name":"default","_cnpm_publish_time":1771583273807},"7.0.0":{"name":"multimatch","version":"7.0.0","description":"Extends `minimatch.match()` with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/multimatch.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"array-differ":"^4.0.0","array-union":"^3.0.1","minimatch":"^9.0.3"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"ae07fcfd4983151ca0649f76c64ca002ef7d5e28","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch#readme","_id":"multimatch@7.0.0","_nodeVersion":"18.18.2","_npmVersion":"9.2.0","dist":{"shasum":"d0a1bf144db9106b8d19e3cb8cabec1a8986c27f","size":2370,"noattachment":false,"key":"/multimatch/-/multimatch-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_7.0.0_1698427043213_0.3672058336126782"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-27T17:17:23.439Z","publish_time":1698427043439,"_source_registry_name":"default","_cnpm_publish_time":1698427043439},"6.0.0":{"name":"multimatch","version":"6.0.0","description":"Extends `minimatch.match()` with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/multimatch.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"@types/minimatch":"^3.0.5","array-differ":"^4.0.0","array-union":"^3.0.1","minimatch":"^3.0.4"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.18.0","xo":"^0.45.0"},"gitHead":"6d514ce93f41a60cdda6b3c232b31610a27b07f7","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch#readme","_id":"multimatch@6.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.20.3","dist":{"shasum":"c72a9bddbc94baa4727efd613b5d22a1fe4d6ee3","size":2596,"noattachment":false,"key":"/multimatch/-/multimatch-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_6.0.0_1634555723503_0.04068974477198628"},"_hasShrinkwrap":false,"publish_time":1634555723686,"_cnpm_publish_time":1634555723686},"5.0.0":{"name":"multimatch","version":"5.0.0","description":"Extends `minimatch.match()` with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/multimatch.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"@types/minimatch":"^3.0.3","array-differ":"^3.0.0","array-union":"^2.1.0","arrify":"^2.0.1","minimatch":"^3.0.4"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.33.1"},"gitHead":"5a973fad8a5d8d794d98a324ae3598f8c707c496","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch#readme","_id":"multimatch@5.0.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"932b800963cea7a31a033328fa1e0c3a1874dbe6","size":2710,"noattachment":false,"key":"/multimatch/-/multimatch-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_5.0.0_1602519286547_0.2822601075266582"},"_hasShrinkwrap":false,"publish_time":1602519286677,"_cnpm_publish_time":1602519286677},"4.0.0":{"name":"multimatch","version":"4.0.0","description":"Extends `minimatch.match()` with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/multimatch.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"@types/minimatch":"^3.0.3","array-differ":"^3.0.0","array-union":"^2.1.0","arrify":"^2.0.1","minimatch":"^3.0.4"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"6b4c22ad38c82457b353bf2cd23c0f3001a7cd2b","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch#readme","_id":"multimatch@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8c3c0f6e3e8449ada0af3dd29efb491a375191b3","size":2451,"noattachment":false,"key":"/multimatch/-/multimatch-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_4.0.0_1555920194393_0.43160216376591287"},"_hasShrinkwrap":false,"publish_time":1555920194620,"_cnpm_publish_time":1555920194620},"3.0.0":{"name":"multimatch","version":"3.0.0","description":"Extends `minimatch.match()` with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/multimatch.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"array-differ":"^2.0.3","array-union":"^1.0.2","arrify":"^1.0.1","minimatch":"^3.0.4"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"3aecd8a61afe5216a085d941b9bf00af73d3cf7b","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch#readme","_id":"multimatch@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0e2534cc6bc238d9ab67e1b9cd5fcd85a6dbf70b","size":2203,"noattachment":false,"key":"/multimatch/-/multimatch-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_3.0.0_1545231152424_0.14644088079992224"},"_hasShrinkwrap":false,"publish_time":1545231152493,"_cnpm_publish_time":1545231152493},"2.1.0":{"name":"multimatch","version":"2.1.0","description":"Extends minimatch.match() with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/multimatch"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"array-differ":"^1.0.0","array-union":"^1.0.1","arrify":"^1.0.0","minimatch":"^3.0.0"},"devDependencies":{"chai":"^3.4.1","mocha":"*"},"gitHead":"5b56d1689ef475975682a514b8e1f863794af419","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@2.1.0","_shasum":"9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b","size":2239,"noattachment":false,"key":"/multimatch/-/multimatch-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-2.1.0.tgz"},"directories":{},"publish_time":1447509132829,"_cnpm_publish_time":1447509132829,"_hasShrinkwrap":false},"2.0.0":{"name":"multimatch","version":"2.0.0","description":"Extends minimatch.match() with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/multimatch"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["minimatch","match","matcher","pattern","patterns","glob","globs","globbing","expand","wildcard","find"],"dependencies":{"array-differ":"^1.0.0","array-union":"^1.0.1","minimatch":"^2.0.1"},"devDependencies":{"chai":"^1.9.1","mocha":"*"},"gitHead":"2bae7db797d8d69a1dec909c156c11c27b2357fa","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@2.0.0","_shasum":"c5ada425357b744ba54842ebdce1c8f0be542b6f","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c5ada425357b744ba54842ebdce1c8f0be542b6f","size":1399,"noattachment":false,"key":"/multimatch/-/multimatch-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-2.0.0.tgz"},"directories":{},"publish_time":1419267118300,"_cnpm_publish_time":1419267118300,"_hasShrinkwrap":false},"1.0.1":{"name":"multimatch","version":"1.0.1","description":"Extends minimatch.match() with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/multimatch"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["minimatch","match","matcher","pattern","patterns","glob","globs","globbing","expand","wildcard","find"],"dependencies":{"array-differ":"^1.0.0","array-union":"^1.0.1","minimatch":"^1.0.0"},"devDependencies":{"chai":"^1.9.1","mocha":"*"},"gitHead":"fcd5df6ec84bd5f7a46073fdda01b0ea632324ba","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@1.0.1","_shasum":"18547cfe258d01fd3324359538dbfaf1046a7c8f","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"18547cfe258d01fd3324359538dbfaf1046a7c8f","size":1396,"noattachment":false,"key":"/multimatch/-/multimatch-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-1.0.1.tgz"},"directories":{},"publish_time":1416754653737,"_cnpm_publish_time":1416754653737,"_hasShrinkwrap":false},"1.0.0":{"name":"multimatch","version":"1.0.0","description":"Extends minimatch.match() with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/multimatch"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["minimatch","match","matcher","pattern","patterns","glob","globs","globbing","expand","wildcard","find"],"dependencies":{"array-differ":"^1.0.0","array-union":"^1.0.0","minimatch":"^1.0.0"},"devDependencies":{"chai":"^1.9.1","mocha":"*"},"gitHead":"9e8f0b3218a0043d72ec061ebdefd0e9d459425a","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@1.0.0","_shasum":"dcdf749896f51480e0e1c48dab9cba41edf464ab","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"dcdf749896f51480e0e1c48dab9cba41edf464ab","size":1390,"noattachment":false,"key":"/multimatch/-/multimatch-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-1.0.0.tgz"},"directories":{},"publish_time":1411395149487,"_cnpm_publish_time":1411395149487,"_hasShrinkwrap":false},"0.3.0":{"name":"multimatch","version":"0.3.0","description":"Extends minimatch.match() with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/multimatch"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["minimatch","match","matcher","pattern","patterns","glob","globs","globbing","expand","wildcard","find"],"dependencies":{"array-differ":"^0.1.0","array-union":"^0.1.0","minimatch":"^0.3.0"},"devDependencies":{"chai":"^1.9.1","mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@0.3.0","_shasum":"603dbc3fe3281d338094a1e1b93a8b5f2be038da","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"603dbc3fe3281d338094a1e1b93a8b5f2be038da","size":1199,"noattachment":false,"key":"/multimatch/-/multimatch-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-0.3.0.tgz"},"directories":{},"publish_time":1403312595846,"_cnpm_publish_time":1403312595846,"_hasShrinkwrap":false},"0.2.0":{"name":"multimatch","version":"0.2.0","description":"Adds multiple patterns support to minimatch.match()","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/multimatch"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["minimatch","match","matcher","pattern","patterns","glob","globbing","expand","wildcard"],"dependencies":{"lodash":"^2.4.1","minimatch":"^0.3.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@0.2.0","_shasum":"46b888d46c0f5329954fe71434fa8e50e99967ec","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"46b888d46c0f5329954fe71434fa8e50e99967ec","size":1294,"noattachment":false,"key":"/multimatch/-/multimatch-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-0.2.0.tgz"},"directories":{},"publish_time":1400492316878,"_cnpm_publish_time":1400492316878,"_hasShrinkwrap":false},"0.1.0":{"name":"multimatch","version":"0.1.0","description":"Adds multiple patterns support to minimatch.match()","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/multimatch"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["minimatch","match","matcher","pattern","patterns","glob","globbing","expand","wildcard"],"dependencies":{"lodash":"~2.4.1","minimatch":"~0.2.14"},"devDependencies":{"mocha":"*"},"readmeFilename":"readme.md","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@0.1.0","dist":{"shasum":"099d9f8f8463ac36cfbfa27360bc16cee87ded64","size":1309,"noattachment":false,"key":"/multimatch/-/multimatch-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multimatch/download/multimatch-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1389780944018,"_cnpm_publish_time":1389780944018,"_hasShrinkwrap":false}},"readme":"# multimatch\n\n> Extends [`minimatch.match()`](https://github.com/isaacs/minimatch#minimatchmatchlist-pattern-options) with support for multiple patterns\n\n## Install\n\n```sh\nnpm install multimatch\n```\n\n## Usage\n\n```js\nimport multimatch from 'multimatch';\n\nmultimatch(['unicorn', 'cake', 'rainbows'], ['*', '!cake']);\n//=> ['unicorn', 'rainbows']\n```\n\nSee the [tests](test) for more usage examples and expected matches.\n\n## API\n\n### multimatch(paths, patterns, options?)\n\nReturns an array of matching paths in the order of input paths.\n\n#### paths\n\nType: `string | string[]`\n\nThe paths to match against.\n\n#### patterns\n\nType: `string | string[]`\n\nGlobbing patterns to use. For example: `['*', '!cake']`. See supported [`minimatch` patterns](https://github.com/isaacs/minimatch#usage).\n\n- [Pattern examples with expected matches](https://github.com/sindresorhus/multimatch/blob/main/test/test.js)\n- [Quick globbing pattern overview](https://github.com/sindresorhus/multimatch#globbing-patterns)\n\n#### options\n\nType: `object`\n\nSee the [`minimatch` options](https://github.com/isaacs/minimatch#options).\n\n## How multiple patterns work\n\nPositive patterns (e.g. `foo` or `*`) add to the results, while negative patterns (e.g. `!foo`) subtract from the results.\n\nTherefore a lone negation (e.g. `['!foo']`) will never match anything. Use `['*', '!foo']` instead.\n\n## Globbing patterns\n\nJust a quick overview.\n\n- `*` matches any number of characters, but not `/`\n- `?` matches a single character, but not `/`\n- `**` matches any number of characters, including `/`, as long as it's the only thing in a path part\n- `{}` allows for a comma-separated list of \"or\" expressions\n- `!` at the beginning of a pattern will negate the match\n\n## Related\n\n- [globby](https://github.com/sindresorhus/globby) - Match against the filesystem instead of a list\n- [matcher](https://github.com/sindresorhus/matcher) - Simple wildcard matching\n","_attachments":{},"homepage":"https://github.com/sindresorhus/multimatch#readme","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"license":"MIT"}