Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via pnpm

multimatch 6.0.0

Extends `minimatch.match()` with support for multiple patterns
Package summary
Share
0
issues
2
licenses
7
MIT
1
ISC
Package created
15 Jan 2014
Version published
18 Oct 2021
Maintainers
1
Total deps
8
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
@types/minimatch@3.0.5
array-differ@4.0.0
array-union@3.0.1
balanced-match@1.0.2
brace-expansion@1.1.11
concat-map@0.0.1
multimatch@6.0.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
minimatch@3.1.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of multimatch 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@types/minimatch3.0.52.88 kBMIT
prod
array-differ4.0.01.8 kBMIT
prod
array-union3.0.11.81 kBMIT
prod
minimatch3.1.211.66 kBISC
prod

Visualizations

Frequently Asked Questions

What does multimatch do?

Multimatch is a powerful npm package that extends the functionality of the minimatch.match() method with support for multiple patterns. It is essentially an advanced path (strings) matching tool that utilizes globbing patterns to precisely find path correspondences within your JavaScript code. Positive patterns (like *) will add to the results, while negative patterns (e.g., !foo) subtract from the results.

How do you use multimatch?

Multimatch is simple to use. First, install the package using npm by running npm install multimatch in your terminal or command line interface. Then, in your JavaScript code, import multimatch and provide it with two arrays: one of the paths you want to match against and one for the globbing patterns to use. Here is an example usage:

import multimatch from 'multimatch';

const matches = multimatch(['unicorn', 'cake', 'rainbows'], ['*', '!cake']);
console.log(matches); //=> ['unicorn', 'rainbows']

In this case, matches will be an array of matching paths in the order of input paths. As seen in the example, the multimatch function returns ['unicorn', 'rainbows'] because it matches all paths (*) except 'cake' (!cake).

Where are the multimatch docs?

Detailed documentation for multimatch is available on the package's GitHub Page: https://github.com/sindresorhus/multimatch. Here you can find a comprehensive breakdown of how multiple patterns work, a quick overview of globbing patterns, additional usage examples, as well as further information about the API and available options. For more detailed usage examples with expected matches, be sure to check out the Pattern examples and minimatch patterns as well.