globby
Reasonable, with limits. 5th of 9 globs and file watching.
globby is a long-running glob wrapper over fast-glob. It adds several patterns at once, negation, directory expansion and real .gitignore support. It is well kept, but many major tools have moved to tinyglobby, which has far fewer dependencies, so globby now makes sense mainly when you need its gitignore handling.
Best for: Node CLIs and scripts that must find files while respecting .gitignore and other ignore files, without writing that logic themselves.
Scores
Overall6.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
It is a well-maintained, capable library, and its gitignore support remains a real reason to pick it. For plain globbing in a new project, tinyglobby does the same job with far fewer dependencies, and the ecosystem has moved to it. globby's share is shrinking fast. It is a reasonable choice with clear limits rather than the default.
- npm downloads ratio: About 1.56 against a median of 4.1
- superchupu.pages.dev/tinyglobby/comparison: tinyglobby is a near drop-in alternative
- github.com/sindresorhus/globby/releases: Active 2026 releases focused on gitignore
GPT-6.2 Sol: 7.2, likely 6.2 to 8.3
Globby is a strong pick for Node.js tools that need to discover files using a repository’s ignore rules. For ordinary matching, tinyglobby has a smaller dependency tree, and modern Node covers many basic searches on its own. Recent fixes support choosing Globby for its specialty, while concentrated release ownership and weaker adoption growth limit the wider recommendation.
- raw.githubusercontent.com/sindresorhus/globby/v16.2.4/readme.md: Documents the Git-aware matching features available in the stable release.
- stylelint.io/migration-guide/to-18: Shows why a major consumer switched and which features it gave up.
- nodejs.org/docs/latest-v24.x/api/fs.html#fspromisesglobpattern-options: Stable built-in globbing covers basic matching on current Node.
- github.com/sindresorhus/globby/releases: Recent releases show concrete fixes and one visible release owner.
- peers: Tinyglobby has substantially stronger download growth.
Needed by many5.8
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many Node build scripts, CLIs and tools need to find files by pattern. globby only finds files. It does not watch, copy or delete them, and it runs only on Node. That is a large group of developers, but not most of them.
- category.job: The category covers finding, watching, copying and deleting files; globby only finds them
- github.com/sindresorhus/globby: The feature set is focused on matching files
GPT-6.2 Sol: 5.5, likely 4.3 to 6.7
File discovery serves build scripts, linters, test runners, and CLIs across frameworks. Globby covers the matching part of the category, and Node’s built-in glob API covers many simple searches. State of JavaScript shows how widely developers use Node.js, but does not measure how many need a separate glob library.
- 2025.stateofjs.com/en-US/other-tools/#javascript_runtimes: Node.js led runtime usage with 10,062 of 11,141 respondents.
- nodejs.org/docs/latest-v24.x/api/fs.html#fspromisesglobpattern-options: Node ships stable globbing with exclusion options.
- raw.githubusercontent.com/sindresorhus/globby/v16.2.4/readme.md: The API focuses on file matching and ignore rules.
Helps a lot7.5
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has the richest ignore-file handling among the glob libraries, plus negation, directory expansion and stream, sync and promise APIs. The types and docs are good. The limits are a heavy dependency tree, gitignore scanning that can be slow on big repositories, and speed that is no better than fast-glob, which it is built on. tinyglobby does the common cases with far fewer dependencies.
- github.com/sindresorhus/globby: Features include gitignore, negation, directory expansion and stream API
- github.com/sindresorhus/globby/issues/50: Users report gitignore: true taking seconds on large trees
- superchupu.pages.dev/tinyglobby/comparison: tinyglobby aims to behave like globby, with 2 dependencies against 23
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 7.9, likely 6.8 to 8.8
The typed API, short examples, and built-in ignore-file handling make repository scans straightforward to write. Version 16 can skip ignored directories during traversal, and recent patches fixed several ignore-rule edge cases. Windows pattern handling takes care, and benchmark results vary by pattern and workload.
- raw.githubusercontent.com/sindresorhus/globby/v16.2.4/readme.md: Documents directory pruning, the streaming API, and Windows path conversion.
- github.com/sindresorhus/globby/releases: Recent patches fixed escaped rules and the interaction between ignore options.
- github.com/isaacs/node-glob/blob/main/README.md#benchmark-results: Peer benchmarks show overhead versus fast-glob and differences in matched results.
- stylelint.io/migration-guide/to-18: Stylelint’s migration documents the ignore-file behavior it lost.
- npm.hasTypes: Ships TypeScript declarations.
Holds up over time6.3
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
There were 7 releases and 17 commits in the last year, with 1 open issue and no open pull requests. That shows careful upkeep by a maintainer who is funded through sponsorship. The risks are that one person can release it, that it depends on fast-glob, whose last release was in January 2025, and that the wider ecosystem is moving to tinyglobby. Majors arrive about once a year and sometimes change behaviour.
- github releasesLastYear: 7 releases, the latest v16.2.4 in August 2026
- peers fast-glob latestPublishedAt: Its base library was last published in January 2025
- github.com/sindresorhus/globby/releases: v15 requires Node 20; v16 changed gitignore lookup
- superchupu.pages.dev/blog/tinyglobby-migration: Major tools are moving to tinyglobby
GPT-6.2 Sol: 6.5, likely 5.3 to 7.6
Seven releases and 17 commits in the past year show ongoing maintenance, with a July regression fix merged and shipped the same day. The maintainer has community sponsorship, and one npm account handles releases. Version 16 changed which ignore rules apply, and Stylelint’s switch to tinyglobby adds uncertainty about future adoption.
- github: Seven releases, 17 commits, one open issue, and zero open pull requests.
- github.com/sindresorhus/globby/releases: Latest release was in August, and version 16 changed parent ignore handling.
- github.com/sindresorhus/globby/pull/277: A contributor’s fix for an ignore regression was merged and released on July 6.
- github.com/sponsors/sindresorhus: Community sponsorship supports the maintainer’s open-source work.
- socket.dev/npm/package/globby/versions/16.2.4: Registry metadata lists one maintainer and credits the same publisher across recent releases.
- stylelint.io/migration-guide/to-18: Stylelint 18 switched to tinyglobby to reduce transitive dependencies.
Used widely6.5
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Downloads are large at 453M per 4 weeks, and 3.7M dependent repositories put it among the most widely depended-on packages. But its year-over-year ratio is about 1.56, against a median of 4.1, so it is clearly losing ground. tinyglobby went from 152M to 1.18B over the same year. Much of globby's use comes from old dependency trees spread across ten major versions.
- npm downloadsLast4Weeks: 453M now against 291M a year ago, a ratio of about 1.56
- medianDownloadsRatio: The median is 4.1, so globby is losing share
- dependents repos: 3.77M repositories and 13k packages depend on it
- peers tinyglobby downloads: tinyglobby grew about 7.8 times in a year
- bluesky posts: Only 1 post links to the repository, so little current attention
GPT-6.2 Sol: 6.9, likely 5.6 to 8.1
Ecosyste.ms found 3.77 million dependent repositories, the highest available count in the bundle, and about 13,100 dependent npm packages. Downstream tools such as del account for some installs, so the number of projects choosing Globby directly remains uncertain. Downloads rose from 291 million to 453 million, or 1.56×, below the catalog median of 4.1× and tinyglobby’s 7.81×.
- dependents: Ecosyste.ms found 3,765,491 repositories and 13,076 npm packages.
- npm.downloadsLast4Weeks: 452,969,217 downloads in the latest four weeks.
- npm.downloadsSame4WeeksYearAgo: 291,124,969 downloads in the comparable period.
- medianDownloadsRatio: The catalog median grew 4.1×.
- peers: Tinyglobby grew 7.81× and drew nine Bluesky posts. Globby drew one.
- github.stars: 2,661 stars, close to fast-glob and below glob.
- raw.githubusercontent.com/sindresorhus/del/main/package.json: Installing del also brings in Globby.
Vouched for5.9
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Linters, CLIs and other projects have used it in production for years. The signal is fading: well-known tools such as tsup, Vite and copy-webpack-plugin now advertise moving to tinyglobby. There are no independent benchmarks or survey data that favour globby today.
- superchupu.pages.dev/blog/tinyglobby-migration: Many major frameworks and tools moved to tinyglobby
- hackerNews stories: No Hacker News stories about it
- dependents packages: 13k npm packages build on it
GPT-6.2 Sol: 6.8, likely 5.6 to 7.9
markdownlint-cli2 and SAP’s UI5 MCP server list Globby 16.2.4 as a runtime dependency. Stylelint’s migration confirms the value of Globby’s ignore-file handling and shows that a major user chose a smaller dependency tree. Independent comparisons cover individual workloads, and recent Globby-specific satisfaction data is scarce.
- raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.24.2/package.json: The released Markdown linter pins Globby 16.2.4.
- github.com/UI5/mcp-server/blob/main/package.json: SAP’s UI5 MCP server declares Globby as a runtime dependency.
- stylelint.io/migration-guide/to-18: Explains the migration and the behavior trade-offs.
- github.com/cypress-io/cypress/issues/35071: A Cypress contributor found matching file sets with tinyglobby when testing Globby 11.
Safe6.1
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has no known advisories and an MIT licence. Its OpenSSF Scorecard score is low at 3.4, with no code review, no branch protection and unpinned dependencies. It pulls in about 23 transitive packages, which widens the supply-chain surface compared with tinyglobby.
- advisories total: 0 advisories
- scorecard score: 3.4, with weak code-review and branch-protection checks
- superchupu.pages.dev/blog/tinyglobby-migration: 24 packages and 637KB installed, against 3 packages for tinyglobby
- npm dependencies: 7 direct dependencies
GPT-6.2 Sol: 6.2, likely 5.1 to 7.4
Globby uses MIT, and OSV lists zero direct advisories. Its seven runtime dependencies widen the supply-chain exposure, although GitHub withdrew the recent advisory for the transitive `braces` package. OpenSSF scored it 3.4, with zeroes for code review, branch protection, and workflow token permissions. One account appears to publish releases, and npm publishing provenance remains unverified.
- advisories.total: OSV lists zero direct advisories.
- raw.githubusercontent.com/sindresorhus/globby/v16.2.4/package.json: MIT license, seven runtime dependencies, and no install lifecycle script.
- scorecard: 3.4 overall. Code review, branch protection, and token permissions scored zero.
- github.com/stylelint/stylelint/issues/9559: A downstream report confirms the dependency path to braces.
- github.com/advisories/GHSA-vfj7-8cjw-p6xm: GitHub withdrew the braces advisory in October 2026.
- socket.dev/npm/package/globby/versions/16.2.4: One npm maintainer is listed, and recent publishes are attributed to that account.
Good
- Built-in .gitignore and ignore-file support that follows Git's lookup up to the repository root (since v16).
- Promise, sync and stream APIs, with several patterns, negation-only patterns and directory expansion.
- Steady patch releases in 2026 fix gitignore edge cases, and almost no issues or pull requests are open.
- It ships its own TypeScript types, has an MIT licence and has no known advisories.
Bad
- It pulls in about 23 transitive packages through fast-glob and micromatch, against 2 for tinyglobby.
- It is ESM-only and needs Node 20 or later, and recent major versions changed behaviour (v16 changed how it finds .gitignore files).
- Its downloads grow much more slowly than its peers' as Vite, Angular, SvelteKit, pnpm and others switch to tinyglobby.
- gitignore: true can be slow on large trees, and a long-standing performance issue is still discussed.
The numbers
- npm downloads, 4 weeks
- 453M +56% in a year
- GitHub stars
- 2.7k
- Commits, 12 months
- 17
- npm version
- 16.2.4 Aug 2026
- Versions, 12 months
- 7
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.4 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (sindresorhus/globby), npm (globby), OSV and the OpenSSF Scorecard.