Glob is a widely used JavaScript library that implements file path pattern matching using glob syntax, enabling developers to efficiently locate files and directories that match wildcard expressions. It provides functionality similar to Unix shell globbing but is designed to work consistently across platforms within Node.js environments. The library supports complex patterns such as recursive directory matching, brace expansion, and character ranges, making it suitable for build tools, CLIs, and automation scripts. node-glob is optimized for performance and reliability when traversing large file trees, and it exposes both asynchronous and synchronous APIs. Because of its maturity and flexibility, it is a foundational dependency in many JavaScript tooling ecosystems. Overall, node-glob serves as a core filesystem discovery utility for Node.js applications that rely on pattern-based file matching.
Features
- Wildcard file pattern matching
- Recursive directory traversal
- Async and sync APIs
- Brace and glob expansion
- Cross-platform behavior
- High-performance file discovery