picomatch
npmv4.0.7Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
Safe to adopt
Yes — picomatch scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 16 days ago. 7 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 16 days ago. 7 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 92 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 4 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — 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 picomatch 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.
Compatibility
- Node.js
- node >=12
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the picomatch README.
const pm = require('picomatch');
const isMatch = pm('*.js');
console.log(isMatch('abcd')); //=> false
console.log(isMatch('a.js')); //=> true
console.log(isMatch('a.md')); //=> false
console.log(isMatch('a/b.js')); //=> falsepicomatch vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| picomatchthis page | 0 | 13 | MIT | 16 days ago |
| is-glob | 137.4M | 3 | MIT | 1 day ago |
| is-extglob | 0 | 1 | MIT | 1 day ago |
| anymatch | 0 | 1 | ISC | 1 day ago |
| globule | 0 | 1 | MIT | 1 day ago |
| fast-glob | 135.1M | 8 | MIT | 1 day ago |
Dependencies
Declared by picomatch v4.0.7. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (5)
Used by
Popular packages that depend on picomatch.
Native-ESM powered web dev build tool
Plugin utilities for Rolldown
This packages is a collection of utilities and helper functions
Next generation testing framework powered by Vite
No description provided.
A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.
The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
`jest-haste-map` is a module used by Jest, a popular JavaScript testing framework, to create a fast lookup of files in a project. It helps Jest efficiently locate and track changes in files during testing, making it particularly useful for large projects
Matches strings against configurable strings, globs, regular expressions, and/or functions
A Metro config for running React Native projects with the Metro bundler
The Expo CLI
DevTools for the Oxc toolchain
A fast and minimal alternative to globby and fast-glob
Relationship graph
Dependencies (left) and dependents (right) of picomatch.
Frequently installed together
The Expo SDK
Universal filesystem path utils
TypeScript definitions for node
Expo Router is a file-based router for React Native and web applications.
Vite DevTools Kit
Framework for building one portable devtool integration that runs in any viewer.
Simple yet powerful framework for building command-line apps.
Native-ESM powered web dev build tool
the most correct and second fastest glob implementation in JavaScript
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
A library for interacting with the app.json
Lightweight debugging utility for Node.js and the browser
Release history
7 releases in the last two years, typically about 53 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.0.7latest | 16 days ago | 92 KB | MIT |
| 4.0.6 | 16 days ago | 91 KB | MIT |
| 4.0.5 | 2 months ago | 91 KB | MIT |
| 4.0.4 | 5 months ago | 89 KB | MIT |
| 3.0.2 | 5 months ago | 90 KB | MIT |
| 2.3.2 | 5 months ago | 88 KB | MIT |
| 4.0.3 | 1 year ago | 83 KB | MIT |
| 4.0.2 | 2 years ago | 83 KB | MIT |
| 4.0.1 | 2 years ago | 83 KB | MIT |
| 4.0.0 | 2 years ago | 83 KB | MIT |
| 3.0.1 | 2 years ago | 83 KB | MIT |
| 3.0.0 | 2 years ago | 83 KB | MIT |
| 2.3.1 | 4 years ago | 88 KB | MIT |
| 2.3.0 | 5 years ago | 87 KB | MIT |
| 2.2.3 | 5 years ago | 85 KB | MIT |
Overview
picomatch is an npm package that blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions. It has 13 known dependents in the graph. The latest version is 4.0.7, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use picomatch?
Yes — picomatch scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 16 days ago. 7 releases in the last 2 years.
How do I install picomatch?
Run `npm install picomatch` to add picomatch to your npm project.
What license is picomatch released under?
picomatch is distributed under the MIT license.
How popular is picomatch?
npm does not publish download counts. Within PackageGraph's crawl, 13 known packages depend on picomatch.
Is picomatch still maintained?
The most recent release of picomatch (v4.0.7) was published 16 days ago.
Does picomatch run install scripts?
No. picomatch does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.