{"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":{"integrity":"sha512-I7tSVxHGPlmPN/enE3mS1aOSo6bWBfls+3HmuEeCUBCE7gWnm3cBXCBkpurzFjVRwC6Kld8lLaZ1Iv5vOcjvcQ==","shasum":"c72a9bddbc94baa4727efd613b5d22a1fe4d6ee3","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-6.0.0.tgz","fileCount":5,"unpackedSize":5784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2z2iCRA9TVsSAnZWagAAWsMP/RjiM/+PTt80HmuS4xDm\nnjn5DMe8Oks2VoxRbEFozf+HJOFtf+wDr/kLKz11Dlp5VewyhVvtxFB/Y2s+\nqb8o6h4xlGiNiCcJEoDVQYXprLvhbaCXlCS8bRCxONw5MdkCFAnILL6dI5/q\nl0D17ZkyGsMfRHJASnf+yKOIbF2bd3Xu+23lQBAYQVhfQ203i/mhceGg/QRv\nyQWs/syGz0tpI2bfMJGfjymWjy5nBkYlCkW0lDT0vD1Ve9BU98MrLrMWzlA6\ncqdc8xO1S7C6vn3kMTsYF2Yogn+3OFTxa6S3JtrG1jBwEssV4EJ8nJ5hdlBE\nyTPi3XREI4mkwVpcz6Mnx4QcY5FW5VOSg5vnjdry2ag6buPSNcipVn64remU\nKRDggfL35DGOPv/sBRTjw3zIau1cDKeeV4LkP5Jd0h7NzU2fMYwCuT84pP0E\nRMuea1OZAhoza6Pz6EAFd1hzSmrE3RNaSAFSnz7dUuCz+cuuY3sUU2VmI0a9\niq+7mX3NEtsYguK2Qejvm+j8u2exdxg9xudip9YgHbOJklTOGUDWV8dncrw3\ni3AJBtYCLfhElD1mNja4uYFx+u7Y8/yu4VxpZv10q9ikNaVc1vFf0tB66RLe\n4Pk4TkqH/FY+hMTi6bCXjdLgI8AdvO3oReVDHwek8bXIifNVQAfFugsGzNu9\nZLxu\r\n=S35w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCROj9rYodEcIXmkZkhRBhep6uCq5iUK2vXGLSQg7iTHwIhAJUs4DcY5ofqNcKk4buKsZm5aCANwTnW/KL+wDTCa8Gg"}],"size":2596,"noattachment":false,"key":"/multimatch/-/multimatch-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_6.0.0_1634555723503_0.04068974477198628"},"_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":1634555723686,"_cnpm_publish_time":1634555723686,"dist-tags":{"latest":"8.0.0"}}