minimatch
npmv10.2.6TypeScripta glob matcher in javascript
Safe to adopt
Yes — minimatch scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 44 days ago. 35 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 44 days ago. 35 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 610 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
BlueOak-1.0.0 — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding minimatch to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing minimatch, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node 18 || 20 || >=22
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the minimatch README.
// hybrid module, load with require() or import
import { minimatch } from 'minimatch'
// or:
const { minimatch } = require('minimatch')
minimatch('bar.foo', '*.foo') // true!
minimatch('bar.foo', '*.bar') // false!
minimatch('bar.foo', '*.+(bar|foo)', { debug: true }) // true, and noisy!Dependencies
Declared by minimatch v10.2.6. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (8)
Used by
Popular packages that depend on minimatch.
An AST-based pattern checker for JavaScript.
General purpose glob-based configuration matching.
A JavaScript implementation of many web standards
the most correct and second fastest glob implementation in JavaScript
A helper utility to parse and validate WebdriverIO options
test for inclusion or exclusion of paths using globs
A library to generate a fingerprint from a React Native project
Implements https://w3c.github.io/accname/
@vue/compiler-sfc
An easy-to-use wildcard globbing library.
Relationship graph
Dependencies (left) and dependents (right) of minimatch.
Frequently installed together
the most correct and second fastest glob implementation in JavaScript
Runtime typescript and ESM support for Node.js
TypeScript definitions for node
The semantic version parser used by npm.
Lightweight debugging utility for Node.js and the browser
An AST-based pattern checker for JavaScript.
Require module from string
Prettier is an opinionated code formatter
Resolve the path of a module like `require.resolve()` but from a given path
The Expo SDK
Unopinionated, no-frills CLI argument parser
Get and typecast environment variables.
Release history
35 releases in the last two years, typically about 0 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 10.2.6latest | 1 month ago | 524 KB | BlueOak-1.0.0 |
| 10.2.5 | 5 months ago | 524 KB | BlueOak-1.0.0 |
| 9.0.9 | 6 months ago | 465 KB | ISC |
| 3.1.5 | 6 months ago | 37 KB | ISC |
| 4.2.6 | 6 months ago | 39 KB | ISC |
| 5.1.9 | 6 months ago | 41 KB | ISC |
| 6.2.3 | 6 months ago | 239 KB | ISC |
| 7.4.9 | 6 months ago | 378 KB | ISC |
| 8.0.7 | 6 months ago | 459 KB | ISC |
| 9.0.8 | 6 months ago | 465 KB | ISC |
| 10.2.4 | 6 months ago | 523 KB | BlueOak-1.0.0 |
| 3.1.4 | 6 months ago | 35 KB | ISC |
| 4.2.5 | 6 months ago | 37 KB | ISC |
| 5.1.8 | 6 months ago | 40 KB | ISC |
| 6.2.2 | 6 months ago | 391 KB | ISC |
Overview
minimatch is an npm package that a glob matcher in javascript. It has 10 known dependents in the graph. The latest version is 10.2.6, released under the BlueOak-1.0.0 license.
Who should use it
Teams working in the npm ecosystem who need a glob matcher in javascript and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (BlueOak-1.0.0).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use minimatch?
Yes — minimatch scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 44 days ago. 35 releases in the last 2 years.
How do I install minimatch?
Run `npm install minimatch` to add minimatch to your npm project.
How many dependencies does minimatch have?
minimatch declares 9 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 610 KB on disk.
What license is minimatch released under?
minimatch is distributed under the BlueOak-1.0.0 license.
How popular is minimatch?
npm does not publish download counts. Within PackageGraph's crawl, 10 known packages depend on minimatch.
Is minimatch still maintained?
The most recent release of minimatch (v10.2.6) was published 1 month ago.
Does minimatch run install scripts?
No. minimatch does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.