# glob: 7.0 out of 10

A strong pick. 3rd of 9 in [Globs and file watching](https://elestia.ai/opensource/files/index.md).

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

- **Overall: 7.0** (likely 6.0 to 8.1)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.5): 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.
- **Needed by many: 5.9** (likely 4.8 to 7.0)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.8): 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.
- **Helps a lot: 7.6** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.2): 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.
- **Holds up over time: 6.8** (likely 5.5 to 8.2)
  - Claude Opus 5.5 (6.5): 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.
  - GPT-6.2 Sol (7.1): 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.
- **Used widely: 7.7** (likely 6.5 to 8.9)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (7.4): 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.
- **Vouched for: 6.8** (likely 5.5 to 8.1)
  - Claude Opus 5.5 (6.5): 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.
  - GPT-6.2 Sol (7.0): 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.
- **Safe: 7.0** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.4): 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.

## 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

- Downloads, 4 weeks: 2.2B
- In a year: ×2.4
- GitHub stars: 8.7k
- Commits, 12 months: 71
- Last npm release: Nov 2026
- Advisories, 24 months: 2
- Licence: BlueOak-1.0.0
- GitHub: https://github.com/isaacs/node-glob
- npm: https://www.npmjs.com/package/glob

Many packages install it, so most downloads are not a direct choice.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
