{"name":"multimatch","version":"0.3.0","description":"Extends minimatch.match() with support for multiple patterns","license":"MIT","repository":{"type":"git","url":"git://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":"^0.1.0","array-union":"^0.1.0","minimatch":"^0.3.0"},"devDependencies":{"chai":"^1.9.1","mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@0.3.0","_shasum":"603dbc3fe3281d338094a1e1b93a8b5f2be038da","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"603dbc3fe3281d338094a1e1b93a8b5f2be038da","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-0.3.0.tgz","integrity":"sha512-HYWM2J/yy3bE/0WjH2ZdOs18tEnXahpjZh+V3FSGSr+TPIOzlp3IgX+SqWW1i24emWpFfBp9rbYX8L+oMhU8Sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaswUCRnTMQgM6fD8Joy0pD3iIPFPNmySiasLBvQSHqAIhAMAsd1stTgScw+vVJTk4oRkuaT21sm2e7heMLazFOjZi"}],"size":1199,"noattachment":false,"key":"/multimatch/-/multimatch-0.3.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":1403312595846,"_cnpm_publish_time":1403312595846,"dist-tags":{"latest":"8.0.0"}}