
Domain Rating
by Ahrefs
Domain Rating by Ahrefs56
Description
tinyglobby is a small JavaScript library for matching file paths with glob patterns such as src/**/*.ts. Its author built it as a minimal alternative to globby and fast-glob, because many glob libraries bundle code that is not very efficient. It exposes glob for async matching and globSync for synchronous matching, with options such as cwd, ignore, dot, onlyFiles and onlyDirectories, plus helpers like escapePath and convertPathToPattern. The library is designed to be as close to a drop-in replacement for globby and fast-glob as possible, and the project has a migration guide for switching over. It is built on two libraries, fdir for crawling the file system and picomatch for matching, and the package is about 183KB. The project says it is faster than other glob libraries in most cases, and the gap grows with the number of files matched. The documentation covers the full API.…
Highlights
- Async glob and synchronous globSync
- Close to a drop-in for globby and fast-glob
- Built on fdir and picomatch
- Ignore, cwd and dot options
- Migration guide from other glob libraries
Ratings & Reviews
No ratings yet
Be the first to rate Tinyglobby.
People also visit
Tinyglobby FAQ
What is tinyglobby for?
Finding files that match glob patterns. Call glob for async matching or globSync for synchronous matching, and pass options such as cwd or ignore.
Can I replace globby or fast-glob with it?
The project aims to be close to a drop-in replacement for both. Its migration guide explains how to switch.
Why is it small and fast?
It was written for speed and small size and relies on fdir for file system crawling and picomatch for matching. The package is about 183KB.
Does it have its own dependencies?
The project says fdir and picomatch, the two libraries it is built on, both use zero dependencies.
What are the best Tinyglobby alternatives?
Popular alternatives to Tinyglobby include bundlejs.com, Fast Querystring and Browsr. See all Tinyglobby alternatives







