{"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":{"integrity":"sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==","shasum":"932b800963cea7a31a033328fa1e0c3a1874dbe6","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-5.0.0.tgz","fileCount":5,"unpackedSize":6030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhID3CRA9TVsSAnZWagAA+GsP/32cBMIrdG3Itw00R4M4\nzx0yiFdzsBK5EHwOgSn+ZwvczcoZ1oYgt4FtPUtmMlsM7pbwXOjML3W8QH9+\njDW0GnmtzAm7da63MCS4EY/NGsoK9ZhrsSlZCMQueE/b9X5bC+pY5wadTx1c\ng6rxnyLq7OmfNgj2RFHJg3XrNKgjtSaE7s+AAz8q8HLYBIT8iJCucgDCzB9W\nfgIr+qcoVV/i7JfH3nGAdVMNF4VJ0SMic4JX464b7cr22OhG4731g7dDGABP\npanT0wgdttxR6wHRyekL2d1C6tD+c9fj/rsNUb1OKOe4tbsTwYXtCnfX1vR7\naQt4VWDKLqn4oyMeyHapxkn+fd+/MdMCkhE/wA2ufAriDF403aSvv4DRgc/F\n/NzFLJSh2+5qJqTchcdaVifw5EAIt07Q17/DFYUiLgwulhApXQ850JJdHcNn\nnrd59VqTN5aEf5ICt425+dFlzP9Fd4eYUzlhnzj/P4dhdseEH4MdbSWXVhFW\nrD0g4vt3IL7+HpPp+FK95NUvNRc5qLGDsFOq8DPaRcwG25uQBqAsz8/asaTx\nsz8Bpfl9k4M4az5a1T1SmizBQts17n4SQiAsueu+8lFO4sum2iCJM9ysHBNp\nq7KEvt1egamTALxgs/ETxVWagsgOC8Azq4i/CVpTUaPOSXYo/WTELQZ1bJUh\nySJn\r\n=Jyhy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjSMOaQuNvaA5jVyn1j/KYQPSMN9sJOVaEMkPH0bkywAiBS/4f12MKJsmY5D57a821Rkni0nppdA23YGJs8jluyWw=="}],"size":2710,"noattachment":false,"key":"/multimatch/-/multimatch-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_5.0.0_1602519286547_0.2822601075266582"},"_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/master/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","publish_time":1602519286677,"_cnpm_publish_time":1602519286677,"dist-tags":{"latest":"8.0.0"}}