{"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":"sindresorhus@gmail.com"}],"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","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-1.0.1.tgz","integrity":"sha512-IAE+90RjqpJQ17ZWNgS5EuglpBNYFNPx9m8VWBFJiAD65XnARcChfwiB8pKcArFclx1dDjXtHxbT1sXaKLQ2wA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkEt46lw+XOceTCto3mLyAKGtqUrbE1Wmf6fMX92wOmQIhAL0a/rSwa1jyaGWGhreMtz6KGfcjdgkLfR+4f/WgSzsk"}],"size":1396,"noattachment":false,"key":"/multimatch/-/multimatch-1.0.1.tgz"},"directories":{},"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":1416754653737,"_cnpm_publish_time":1416754653737,"dist-tags":{"latest":"8.0.0"}}