# isaacs/minimatch

a glob matcher in javascript

Repository: https://github.com/isaacs/minimatch
Canonical: https://ross.abutalabs.com/products/minimatch
Homepage: http://isaacs.github.io/minimatch/
Language: JavaScript
License: BlueOak-1.0.0
License Family: other
Last push: 2026-07-27T18:59:54+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 5527, "days_push": 37, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3518, forks 383 (observed 2026-08-28T04:08:07.888042+00:00)

## What it is
A minimal JavaScript glob matching library that converts bash-style glob expressions into RegExp objects. It is the matching library used internally by npm and supports brace expansion, extended glob matching, globstar patterns, and POSIX character classes.

## Use cases
- match file paths against glob patterns in node
- implement .gitignore-style file filtering
- check if a filename matches *.foo
- globstar ** recursive path matching in javascript
- brace expansion pattern matching
- posix character class matching with unicode support

## When to choose
- you need battle-tested bash-compatible glob matching in JavaScript
- you want the same matcher npm uses internally
- you need POSIX character classes with full Unicode support

## When to avoid
- you will pass untrusted user input as glob patterns (ReDoS risk)
- you need Windows backslash path separators in patterns
- you need collating symbol matching like [[.ch.]]

## Facets
- artifact type: library
- maturity: stable
- function: parser, developer-tools
- domain: developer-tools, files, web-development
- platform: cross-platform
- tags: glob-matching, pattern-matching, regex, npm, file-matching, nodejs, javascript

## Member repositories
- isaacs/minimatch (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:07.888042+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:35:33.644530+00:00, confidence not recorded.
  - readme: https://github.com/isaacs/minimatch (fetched 2026-08-28T04:08:07.888042+00:00, sha e2e4383c8a76)
  - homepage: http://isaacs.github.io/minimatch/ (fetched 2026-08-29T09:29:36.218028+00:00, sha 604a4ca687ad)
  - registry_npm: https://registry.npmjs.org/minimatch (fetched 2026-08-29T09:29:36.227721+00:00, sha f35f09918219)
- Data as of 2026-08-30T08:39:29.467469+00:00.
