# glob

> Match files using the patterns the shell uses

Source: https://talira.ai/catalog/glob-x01zjgdr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem)
- Licence: BlueOak-1.0.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Isaac Z. Schlueter](https://talira.ai/orgs/isaacs.md)

glob is the npm package for matching files with shell-style glob patterns in Node.js, written in TypeScript by Isaac Z. Schlueter. It offers promise, synchronous, iterator and stream APIs (glob, globSync, globIterate, globStream), takes several patterns at once, supports ignore patterns, cancellation with an AbortSignal, and escaping and unescaping patterns, and guards against regular expression denial of service. It handles Windows paths, with an option to use backslashes as path separators. Its command-line tool moved to the separate glob-bin package. Blue Oak Model License.

## Links

- GitHub: https://github.com/isaacs/node-glob

## Problems it solves

- find all files matching **/*.js in my Node.js script, skipping node_modules
- expand shell wildcard patterns in a JavaScript build tool
- list files by pattern without spawning a shell on Windows

## Features

- promise, sync, async iterator and stream APIs
- multiple patterns and ignore patterns in one call
- cancellation with an AbortSignal
- protection against regular expression denial of service
- Windows path handling, with an option for backslash separators
- escape and unescape helpers for patterns

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 0.83, adoption 0.79, momentum 0.49, community 0.70, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 34 commits in the last 90 days
- latest release v14.0.6 17 days ago
- 8.7k GitHub stars
- 55 contributors
- accepts sponsorship (Github)
- backed by Isaac Z. Schlueter

## Alternatives

- [globby](https://talira.ai/catalog/globby-wn2ptymw.md): Glob matching for Node.js with negated patterns, directory expansion and .gitignore support
- [rimraf](https://talira.ai/catalog/rimraf-dg86ye06.md): rm -rf for Node.js, cross-platform

## Sources

[^1]: https://github.com/isaacs/node-glob/blob/main/LICENSE.md (checked 27 Nov 2026)
