{"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":{"integrity":"sha512-22foS/gqQfANZ3o+W7ST2x25ueHDVNWl/b9OlGcLpy/iKxjCpvcNCM51YCenUi7Mt/jAjjqv8JwZRs8YP5sRjA==","shasum":"0e2534cc6bc238d9ab67e1b9cd5fcd85a6dbf70b","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-3.0.0.tgz","fileCount":4,"unpackedSize":4506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGlsxCRA9TVsSAnZWagAAwYcP/jTAkn9GDHk2jHQ4DBHQ\negHACy7/DKC744M4eEZCMbjHMMMk6JYNYkVxVqR5VEbUbf6IHGJ7XubDPQQm\n4XGs5JZyoC3/suHVuy9WkEkF5Qx5tJEe25EX6KU6DLZCNK2KEuzIkNxluZA4\nSv50xq1JOa9TQCtQZZg77KPckU+ZBFI/tEt0JPby0PiDUAW0YEsfz9LjUvRK\nFcxGNsGKRs7vu01t/xssIg9PgaSbs2GYIU8AbJoOPhIt1m2Zh9a/P8080fBz\nBf/RS1EnKBh/uUy7eXBADpTrhijA7brBr5RkP+7pS45rnEpfpCY6htmBTHwP\n+cnfSmyiy3ZHQH7csyBbwwNczL0AVm0QR9h28LIvki+IY76mc0vpI0SSQxG2\nrbumCnfTpEHP6RD3l/MvCKIZ6R2pxkEK2t/MkWDVgnlOxmYLjDAYHCRBj6cz\n2cXV2omwx3GX7S84GWZn8b3fXfeAciwGWbgA0+96CvNkNYUUKaGQBqYrpMIj\n4SnXZjA2dnS99RbisBCZ6M9zUp4XLTj2iHoBMBDwL59NysGaUqUXrOqWh2Ad\nwlP/k/Eo0PbNYSdWlh7uwvtqbDJusIAEjOO5EhGb63tyQN1FRwApj/U6eNu1\n/7LsYd1gQq6LyAOifMhTwRCB+3e4IWV9R2KZMGnz3r2K9jJcj++Rsku7IkL3\nw8yx\r\n=KYex\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBHlNNYhvTLfiGwwOwDvg6VIWTtXsKDiuxHGY7I6bfsQIgLkwkgRrbbmFpXtBksfgdnAcvf7GfNo4vVh5a0o6Us5Q="}],"size":2203,"noattachment":false,"key":"/multimatch/-/multimatch-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multimatch_3.0.0_1545231152424_0.14644088079992224"},"_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":1545231152493,"_cnpm_publish_time":1545231152493,"dist-tags":{"latest":"8.0.0"}}