# minimatch

> Glob matching for JavaScript, without regular expressions

Source: https://talira.ai/catalog/minimatch-nfwzcs0d
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: BlueOak-1.0.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Isaac Z. Schlueter](https://talira.ai/orgs/isaacs.md)

minimatch is a glob matching library for JavaScript and the matcher behind [glob](https://talira.ai/catalog/glob-x01zjgdr.md) (node-glob). It splits a glob on `/` and tests each path segment with a non-recursive matcher instead of compiling the pattern to a regular expression, so from version 11 it isn't open to ReDoS from patterns like `a*a*a*a*a`, where earlier versions and most other JavaScript glob matchers are. Its maintainers still warn against matching untrusted patterns in a system without limits. It's by Isaac Z. Schlueter.

## Links

- GitHub: https://github.com/isaacs/minimatch
- Docs: https://isaacs.github.io/minimatch/

## Problems it solves

- match file paths against glob patterns in Node.js
- test whether a path matches a glob without ReDoS risk
- filter a list of filenames with wildcards in JavaScript

## Features

- glob pattern matching for paths
- non-recursive matching without regular expressions
- ReDoS-resistant from v11
- used by node-glob

## Limitations

- Any pattern matching on arbitrary user input can still hit slow edge cases: its maintainers warn against accepting untrusted patterns without limits.[^1]

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 1.00, adoption 0.71, momentum 0.39, community 0.65, backing 0.30, extensibility 0.00.

- last commit yesterday
- 68 commits in the last 90 days
- latest release v11.0.7 19 days ago
- 3.5k GitHub stars
- 40 contributors
- accepts sponsorship (Github)
- backed by Isaac Z. Schlueter

## Related

- Works with [glob](https://talira.ai/catalog/glob-x01zjgdr.md)

## Alternatives

- [fast-glob](https://talira.ai/catalog/fast-glob-410drv62.md): Very fast and efficient glob library for Node.js
- [glob](https://talira.ai/catalog/glob-x01zjgdr.md): Match files using the patterns the shell uses
- [globby](https://talira.ai/catalog/globby-wn2ptymw.md): Glob matching for Node.js with negated patterns, directory expansion and .gitignore support
- [rimraf](https://talira.ai/catalog/rimraf-dg86ye06.md): rm -rf for Node.js, cross-platform

## Sources

[^1]: https://github.com/isaacs/minimatch/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/isaacs/minimatch/blob/main/LICENSE.md (checked 29 Nov 2026)
