API Reference

tinyglobby

High-performance glob matcher combining fdir and picomatch, with async iteration, ignore patterns, and cwd support.

Official Documentation ↗
CompatibilityThis documentation covers version v0.2. Check the official docs for the latest API surface.

Installation

npmnpm install tinyglobby

Methods

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.

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.