{"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":{"integrity":"sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==","shasum":"8c3c0f6e3e8449ada0af3dd29efb491a375191b3","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-4.0.0.tgz","fileCount":5,"unpackedSize":5448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvXVDCRA9TVsSAnZWagAAKZ0P/0mFw/z5dr2e5TAkU/rN\nMcbzQ2fMQx1h65AZDbzywcNm112XeBwXJbQ8w0YIXVLrXAiwQbAYsPZ2qn2J\nGpP8845cWX6WcDEJHgP8Qjb6Hya8nxCcvlXQObSbp8N99FARD2Y0T1+qNd90\neWY470B/MhJSMfnijbnGJMJjcBA9eMH6mWpFPis/uWiYTNxKaLZuAw5GUtwr\nJefeAG8gOF+TbWL9nytGwTFf9yObb+qF701TqzqpqRk3IVfXX+VGwmXt5nL3\npnxMaPKiF74JDVQlQAbVqmJGl5w7qcJot5DVwGbqH6P19gZ5Fw+suAvujGXa\ndxjbzsJ4Y20+7nwJxpcZH3/k95LMUoA+Xxjkw8gm71lESCqGvpb8UJMdO3ge\nuD+OXgozOjLsc/N0rUmcGD2JztWNOKwkFHMmQQ+LKJuo+HL12oyYrX5J+yqt\nXmwIs+5CV7u7dV4ykjuMwKxSvdvllvYOH5W8Pi4rOh/bbWRagMBnqJJDydtX\nRDgviGKIUEwA9H4Nb7YZhcGHCMA/OKp04noPZo0tTN6AIMfpq59NEgSG826X\niEd+b49Ogm78wMLX8mOLZtOq5FZaKoNc19hgOk9zltXjybQDoBYVrSmIrnhW\nx767IQZfmPCZzh/s6QvPIbxEm5e9St2Ea6VLHq2DJDNrXQHfhk9wJFRUTmgc\nHNlw\r\n=zKIG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBd4ikgmyUI8tBjFbI6Xy3ZDSvtNP6bUaUX1I/vRnZ+QIhAK6nonPtZoAEtBA9Zzxp+cPSc/Ado9pYmHjd65XT1/PA"}],"size":2451,"noattachment":false,"key":"/multimatch/-/multimatch-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_4.0.0_1555920194393_0.43160216376591287"},"_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":1555920194620,"_cnpm_publish_time":1555920194620,"dist-tags":{"latest":"8.0.0"}}