{"name":"multimatch","version":"2.1.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":["expand","find","glob","globbing","globs","match","matcher","minimatch","pattern","patterns","wildcard"],"dependencies":{"array-differ":"^1.0.0","array-union":"^1.0.1","arrify":"^1.0.0","minimatch":"^3.0.0"},"devDependencies":{"chai":"^3.4.1","mocha":"*"},"gitHead":"5b56d1689ef475975682a514b8e1f863794af419","bugs":{"url":"https://github.com/sindresorhus/multimatch/issues"},"homepage":"https://github.com/sindresorhus/multimatch","_id":"multimatch@2.1.0","_shasum":"9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b","tarball":"http://registry-npm.ywwl.com/multimatch/download/multimatch-2.1.0.tgz","integrity":"sha512-0mzK8ymiWdehTBiJh0vClAzGyQbdtyWqzSVx//EK4N/D+599RFlGfTAsKw2zMSABtDG9C6Ul2+t8f2Lbdjf5mA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRFeHbLlfj5G9GdAHYtac6LwEUC+PokJQfO5obnzsjdwIhAICmIpkqXp8OarEBysiEbDmS6yPX3y0+4ULsdgYiQfa5"}],"size":2239,"noattachment":false,"key":"/multimatch/-/multimatch-2.1.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":1447509132829,"_cnpm_publish_time":1447509132829,"dist-tags":{"latest":"8.0.0"}}