tinyglobby
High-performance glob matcher combining fdir and picomatch, with async iteration, ignore patterns, and cwd support.
Official Documentation ↗v0.2. Check the official docs for the latest API surface.Installation
npm install tinyglobbyMethods
No methods match this filter.
tinyglobby is high-performance glob matcher combining fdir and picomatch, with async iteration, ignore patterns, and cwd support. This page documents the core methods, installation, and common usage patterns for the current stable release.
Installation
Install tinyglobby with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.
Core methods
The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v0.2 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.
Frequently asked questions
The faq section in the frontmatter answers the most common questions about tinyglobby, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.
API reference evidence
Fetched from official sources on 2026-11-08T20:05:00+08:00 via WebFetch https://raw.githubusercontent.com/tinylibs/tinyglobby/main/src/index.ts(返回空);WebFetch https://cdn.jsdelivr.net/npm/tinyglobby@latest/dist/index.d.ts.
glob→ signature from https://cdn.jsdelivr.net/npm/tinyglobby@latest/dist/index.d.ts; official text: “declare function glob(patterns: string | string[], options?: Omit<GlobOptions, “patterns”>): Promise<string[]>; declare function glob(options: GlobOptions): Promise<string[]>;”globSync→ signature from https://cdn.jsdelivr.net/npm/tinyglobby@latest/dist/index.d.ts; official text: “declare function globSync(patterns: string | string[], options?: Omit<GlobOptions, “patterns”>): string[]; declare function globSync(options: GlobOptions): string[];”isDynamicPattern→ signature from https://cdn.jsdelivr.net/npm/tinyglobby@latest/dist/index.d.ts; official text: “declare function isDynamicPattern(pattern: string, options?: { caseSensitiveMatch: boolean; }): boolean; //#endregion”
FAQ
- Why is it faster than fast-glob?
- It uses fdir for directory traversal and picomatch for matching, reducing overhead on large trees.
- Does it support .gitignore?
- Pass ignore: ['**/node_modules/**'] manually; it does not read .gitignore files.
- Can it stream results?
- Use globStream for async iteration without collecting all matches in memory.
Report a problem with this API docOpens a pre-filled issue on GitHub.