Package Exports
- tinyglobby
Readme
tinyglobby
A fast and minimal alternative to globby and fast-glob, meant to behave the same way.
Both globby and fast-glob present some behavior no other globbing lib has, which makes it hard to manually replace with something smaller and better.
This library uses only two subdependencies, unlike globby's 24 and fast-glob's 17.
Usage
import { glob } from 'tinyglobby';
await glob({ patterns: ['src/*.ts', '!**/*.d.ts'] });
import { globSync } from 'tinyglobby';
globSync({ patterns: ['src/*.ts', '!**/*.d.ts'] });
Options
patterns
: An array of glob patterns to search for. If not present returns every file in the cwd.ignore
: An array of glob patterns to ignore.cwd
: The current working directory in which to search. Defaults toprocess.cwd()
.absolute
: Whether to return absolute paths. Defaults tofalse
.expandDirectories
: Whether to expand directories. Disable to best matchfast-glob
. Defaults totrue
.