{"name":"multimatch","version":"1.0.0","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.0","minimatch":"^1.0.0"},"devDependencies":{"chai":"^1.9.1","mocha":"*"},"gitHead":"9e8f0b3218a0043d72ec061ebdefd0e9d459425a","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@1.0.0","_shasum":"dcdf749896f51480e0e1c48dab9cba41edf464ab","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"dcdf749896f51480e0e1c48dab9cba41edf464ab","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-1.0.0.tgz","integrity":"sha512-D8CNdz07XDocC1uR8RpXyv2+K7fA7eh3rIly4OvK7drTr3iFgyIBWTPZ59jw1iVHdxk/WOkI55v7zRcvGnxOPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEq5VVRMs7bC2E32DU4cyRfqDj7lox+aiqfDB7O7HJfvAiBRyAenC7+qlZB9ePaFv/Fyglr2yXjbOUpzj7wra5E8ow=="}],"size":1390,"noattachment":false,"key":"/multimatch/-/multimatch-1.0.0.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":1411395149487,"_cnpm_publish_time":1411395149487,"dist-tags":{"latest":"8.0.0"}}