Very fast and efficient glob library for Node.js
open sourceMITfree
fast-glob traverses the file system and returns pathnames matching glob patterns, following Bash's rules with some simplifications. It supports multiple and negative patterns, synchronous, promise and stream APIs, an object mode that returns more than strings, and error tolerance, and aims to be among the fastest glob libraries for Node.js. It's by Denis Malinochkin.
Problems it solves
- find files matching glob patterns in Node.js quickly
- exclude files with negative glob patterns
- stream glob matches in a Node build tool
Features
- multiple and negative patterns
- sync, promise and stream APIs
- object mode with file entries
- error-tolerant traversal
Alternatives
The same job
These do what fast-glob does.
- minimatch Glob matching for JavaScript, without regular expressions
- globby Glob matching for Node.js with negated patterns, directory expansion and .gitignore support
- glob Match files using the patterns the shell uses
- rimraf rm -rf for Node.js, cross-platform
- del Delete files and directories by glob in Node.js, with a promise API
