glob
A strong pick. 3rd of 9 globs and file watching.
glob is the original Node.js file-matching library. It is correct and ReDoS-safe, and it has full async, sync, stream and iterator APIs. For a new project, though, tinyglobby (fewer dependencies, faster growth) or Node's built-in fs.glob is now usually the better pick. Use glob when you want the most bash-faithful matching.
Best for: Projects that need exact bash-style glob semantics, streaming or cancellable walks, and a long-lived, well-known API.
Scores
Overall7.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
glob is a correct, well-maintained library with a rich API, and it is safe to keep or adopt. For new projects, tinyglobby gives a similar API with fewer dependencies and far stronger growth, and Node's fs.glob covers simple cases without a dependency. That puts glob below the category leaders, though it is still a sound choice when bash-exact semantics matter.
- npm downloads ratio: 2.36x versus 4.1x median
- github.com/isaacs/node-glob: Correctness- and safety-focused design
- reading.serenaabinusa.workers.dev/readme-https-e18e.dev/docs/replacements/glob: Community replacement guide recommends tinyglobby
GPT-6.2 Sol: 7.5, likely 6.4 to 8.6
Choose glob for a new Node.js tool when streaming, reusable caches, or detailed traversal rules matter. Node’s built-in glob covers routine searches, and tinyglobby is a leaner choice for common patterns. Active maintenance and prompt patches support a strong recommendation for advanced use, while recent breaking changes and limited independent v14 benchmarks keep the range wide.
- raw.githubusercontent.com/isaacs/node-glob/v14.0.6/README.md: Documents streams, reusable caches, and advanced matching controls.
- nodejs.org/docs/latest-v24.x/api/fs.html#fspromisesglobpattern-options: Stable built-in globbing covers common searches.
- github.com/outslept/glob-comparison: Compares dependency footprint and matching behavior with tinyglobby and other peers.
- raw.githubusercontent.com/isaacs/node-glob/v14.0.6/changelog.md: Documents breaking changes and the cancellation fix.
- github.com/isaacs/node-glob/releases/tag/v14.0.6: Current release fixes the latest project advisory.
Needed by many5.9
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Build tools, CLIs and scripts often need to match files by pattern, but most app developers rarely call a glob library directly. glob does only the matching part of the category; it does not watch, copy or delete files.
- dependents.packages: 48k npm packages depend on it, mostly tooling
- category scope: Globbing is mainly a build-tool and script need
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
Pattern-based file discovery is useful across Node.js build tools, test runners, and scripts. glob covers discovery within the broader category, while watching, copying, and deletion require other APIs. Node already covers basic matching, and the runtime survey gives only an indirect measure of how many teams need glob’s extra controls.
- 2025.stateofjs.com/en-US/other-tools/#runtimes: Node.js led the runtime question with 10,062 of 11,141 respondents.
- raw.githubusercontent.com/isaacs/node-glob/v14.0.6/README.md: Documents pattern matching and filesystem traversal.
- nodejs.org/docs/latest-v24.x/api/fs.html#fspromisesglobpattern-options: Node provides stable built-in globbing.
Helps a lot7.6
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Its matching is correct and bash-faithful, it is ReDoS-safe, and its API is complete and typed. Its own benchmarks put it second to fast-glob on speed. tinyglobby offers a similar API with fewer dependencies, and fs.glob is built into Node. AI agents write glob code well because the API is old and widely documented, but they sometimes mix up the APIs of different major versions.
- github.com/isaacs/node-glob: No ReDoS; second fastest; sync fast-glob about 25% faster
- reading.serenaabinusa.workers.dev/readme-https-e18e.dev/docs/replacements/glob: e18e mirror lists tinyglobby and native fs.glob as replacements
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 8.2, likely 7.1 to 9.1
Typed streams and iterators, reusable caches, and precise traversal controls make glob a strong choice for complex searches. An independent fixture comparison shows where its pattern handling helps, while benchmarks from another filesystem project favor tinyglobby and fast-glob on several full-tree scans. Those timings cover v13, and v14 changed the matching engine, so the current performance gap is uncertain. Versioned examples give coding agents clear imports and options, but there is little direct evidence on how reliably agents use v14.
- raw.githubusercontent.com/isaacs/node-glob/v14.0.6/README.md: Examples cover typed APIs, cache reuse, and traversal options.
- github.com/outslept/glob-comparison: Independent fixtures compare literal matching, directory patterns, and Windows output.
- rush-fs-docs.vercel.app/guide/competitor-evidence: Matched-result benchmarks compare glob 13.0.6 with several peers.
- raw.githubusercontent.com/isaacs/node-glob/v14.0.6/changelog.md: Version 14 changed the pattern matching engine and traversal behavior.
Holds up over time6.8
Will it still be a good choice in two years?
Claude Opus 5.5: 6.5, likely 5.0 to 8.0
Maintenance is active: 71 commits and 14 versions in the last year, a release on 2026-11-12, and no open issues. It rests on one well-known maintainer. Frequent major versions cause churn, and the ecosystem (e18e, Vite, Nuxt) is moving toward tinyglobby and fs.glob.
- github commitsLastYear: 71 commits; openIssues 0
- npm versionsLastYear: 14 versions, latest is v14.0.6
- superchupu.pages.dev/blog/tinyglobby-migration: Major frameworks have switched their dependencies to tinyglobby
- isaacs.github.io/glob-bin: CLI split into glob-bin in v13
GPT-6.2 Sol: 7.1, likely 5.9 to 8.3
The collector recorded 71 commits and 14 npm versions in the past year, and recent security fixes shipped promptly. npm lists one maintainer, and the project links to individual sponsorship. The v13 CLI split and v14 matching changes add upgrade work, while Expo’s move to built-in globbing and tinyglobby adds uncertainty about future demand.
- github.commitsLastYear, github.openPullRequests, npm.versionsLastYear: 71 commits, one open pull request, and 14 npm versions.
- registry.npmjs.org/glob: One listed npm maintainer and recent patch releases.
- raw.githubusercontent.com/isaacs/node-glob/v14.0.6/package.json: Funding metadata links to individual GitHub sponsorship.
- raw.githubusercontent.com/isaacs/node-glob/v14.0.6/changelog.md: Documents the CLI split and v14 changes to matching and traversal.
- github.com/expo/expo/pull/52796: Expo merged a change replacing glob in its CLI.
Used widely7.7
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has 2.16 billion downloads in 4 weeks and 2.1 million dependent repos, which is huge. Most of those downloads come from transitive installs, often of old versions. Its 2.36x yearly ratio is below the 4.1x median, and tinyglobby (7.8x) now has more of new projects' attention, so it is losing share.
- npm downloadsLast4Weeks: 2.16B, up from 915M a year ago (2.36x)
- medianDownloadsRatio: Median is 4.1x, so glob lags
- dependents.repos: 2.1M repos
- peers tinyglobby: 1.18B downloads, growing 7.8x
GPT-6.2 Sol: 7.4, likely 5.9 to 8.8
The collector found about 2.1 million dependent repos and 48,165 dependent npm packages, with fewer repos than fast-glob or globby. Four-week downloads grew 2.36× year over year, below the 4.1× catalog median and tinyglobby’s 7.81×, so glob lost ground on the normalized download measure. Most installs are transitive, and sparse recent discussion gives little basis for estimating how often new projects choose it directly.
- dependents, peers.dependentRepos: Large observed footprint, behind fast-glob and globby by repo count.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 2.16 billion four-week downloads, with growth below the catalog baseline.
- project.note, github.stars, bluesky.posts, hackerNews.stories: Mostly indirect installs, 8,712 stars, two Bluesky posts, and zero matched Hacker News stories.
- github.com/voidzero-dev/vite-plus/releases/tag/v1.4.0: Vite+ moved its CLI to tinyglobby.
Vouched for6.8
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.0 to 8.0
For years npm and countless tools have relied on it, which tests it heavily in production. Current independent endorsements lean toward tinyglobby or fs.glob, and there are no recent surveys or third-party benchmarks that favour glob. Online discussion is thin: 0 Hacker News stories and 2 Bluesky posts.
- npm CLI bundles glob: Long production use in npm and many tools
- bluesky posts: Only 2 posts, one about an advisory
- npm-compare.com/fast-glob,glob,micromatch,node-glob: Third-party comparison sees glob as a solid but not the fastest option
GPT-6.2 Sol: 7.0, likely 5.9 to 8.2
The npm CLI and Mocha depend on glob, showing that established tools use it for real work. Both declare v13, and Expo has moved its CLI away from the package. Independent pattern tests support glob’s handling of several edge cases, but evidence of sustained v14 use is still limited.
- github.com/npm/cli/blob/latest/package.json: npm CLI declares and bundles glob v13.
- raw.githubusercontent.com/mochajs/mocha/main/package.json: Mocha declares glob v13 as a runtime dependency.
- github.com/expo/expo/pull/52796: Expo replaced glob with built-in globbing and tinyglobby in its CLI.
- github.com/outslept/glob-comparison: Independent fixtures check behavior against other glob implementations.
Safe7.0
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
It has had two advisories in two years: a HIGH command injection in the CLI only (fixed quickly, and the CLI then moved to glob-bin) and a MODERATE AbortSignal bypass in October 2026. It has 3 dependencies and a permissive BlueOak licence. Its Scorecard is 5.8, with zero for code review, branch protection and pinned dependencies, and releases come from one person.
- osv.dev/vulnerability/GHSA-5j98-mcp5-4vw2: CLI command injection fixed in 10.5.0 and 11.1.0; library API not affected
- advisories.recent: MODERATE AbortSignal bypass, 2026-10-30
- scorecard: 5.8; Code-Review 0, Branch-Protection 0
- npm dependencies: 3 dependencies; BlueOak-1.0.0 licence
GPT-6.2 Sol: 7.4, likely 6.2 to 8.5
The current release contains fixes for the legacy CLI command injection, the cancellation bug, and a third advisory missing from the bundle involving resource use in ignore patterns. Fixes were available by disclosure for the two 2026 advisories, and the legacy CLI fix reached two major lines. The package has three direct dependencies, a permissive BlueOak-1.0.0 license, and npm provenance from GitHub Actions trusted publishing. One listed maintainer and zero Scorecard scores for code review, branch protection, dependency pinning, and fuzzing limit confidence.
- github.com/advisories/GHSA-5j98-mcp5-4vw2: Legacy CLI issue patched in v10.5.0 and v11.1.0.
- github.com/advisories/GHSA-3g3m-2fjr-6pw4: Cancellation issue patched in v14.0.2.
- github.com/isaacs/node-glob/security/advisories/GHSA-qxr8-q827-836c: Ignore-pattern issue disclosed and patched in v14.0.6.
- registry.npmjs.org/glob: Release dates, three direct dependencies, BlueOak license, one maintainer, and v14.0.6 provenance.
- scorecard.score, scorecard.checks: 5.8 overall, with a security policy and weak review and branch controls.
Good
- It never compiles patterns to regular expressions, so it is safe from ReDoS. It also aims for the most bash-correct matching.
- It has a rich API: promise, sync, stream and iterator forms, a reusable Glob class, AbortSignal, maxDepth and withFileTypes.
- It ships its own TypeScript types, has only 3 runtime dependencies, and uses a permissive BlueOak-1.0.0 licence.
- It is actively maintained, with 14 npm versions and 71 commits in the last year and an empty issue queue.
Bad
- Its download growth (2.4x) is below the 4.1x median, while tinyglobby grew about 7.8x. The ecosystem is moving away from it.
- Many major versions in a few years (v9 through v14) bring upgrade churn, and old glob@7 installs show deprecation warnings.
- It depends on one maintainer, and its OpenSSF Scorecard is 5.8 with no code review and no branch protection.
- Node's built-in fs.glob and tinyglobby now cover most common uses with fewer dependencies.
The numbers
- npm downloads, 4 weeks
- 2.2B ×2.4 in a year
- GitHub stars
- 8.7k
- Commits, 12 months
- 71
- npm version
- 14.0.6 Nov 2026
- Versions, 12 months
- 14
- Advisories, 24 months
- 2 of 2 ever
- OpenSSF Scorecard
- 5.8 out of 10, Nov 2026
- Licence
- BlueOak-1.0.0
Many packages install it, so most downloads are not a direct choice.
Read on 21 November 2026 from GitHub (isaacs/node-glob), npm (glob), OSV and the OpenSSF Scorecard.