Gathering detailed insights and metrics for tinyglobby
Gathering detailed insights and metrics for tinyglobby
Gathering detailed insights and metrics for tinyglobby
Gathering detailed insights and metrics for tinyglobby
A fast and minimal alternative to globby and fast-glob
npm install tinyglobby
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.1
Supply Chain
90.4
Quality
88.1
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
183,077,961
Last Day
2,756,460
Last Week
14,989,127
Last Month
57,879,200
Last Year
183,077,961
MIT License
346 Stars
109 Commits
15 Forks
4 Watchers
3 Branches
10 Contributors
Updated on May 08, 2025
Minified
Minified + Gzipped
Latest Version
0.2.13
Package Id
tinyglobby@0.2.13
Unpacked Size
30.53 kB
Size
6.68 kB
File Count
7
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 19, 2025
Cumulative downloads
Total Downloads
Last Day
47.2%
2,756,460
Compared to previous day
Last Week
8.5%
14,989,127
Compared to previous week
Last Month
30.5%
57,879,200
Compared to previous month
Last Year
0%
183,077,961
Compared to previous year
6
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, compared to globby
's 23
and fast-glob
's 17.
1import { glob, globSync } from 'tinyglobby'; 2 3await glob(['files/*.ts', '!**/*.d.ts'], { cwd: 'src' }); 4globSync(['src/**/*.ts'], { ignore: ['**/*.d.ts'] });
glob(patterns: string | string[], options: GlobOptions): Promise<string[]>
: Returns a promise with an array of matches.globSync(patterns: string | string[], options: GlobOptions): string[]
: Returns an array of matches.convertPathToPattern(path: string): string
: Converts a path to a pattern depending on the platform.escapePath(path: string): string
: Escapes a path's special characters depending on the platform.isDynamicPattern(pattern: string, options?: GlobOptions): boolean
: Checks if a pattern is dynamic.patterns
: An array of glob patterns to search for. Defaults to ['**/*']
.ignore
: An array of glob patterns to ignore.cwd
: The current working directory in which to search. Defaults to process.cwd()
.absolute
: Whether to return absolute paths. Defaults to false
.dot
: Whether to allow entries starting with a dot. Defaults to false
.deep
: Maximum depth of a directory. Defaults to Infinity
.followSymbolicLinks
: Whether to traverse and include symbolic links. Defaults to true
.caseSensitiveMatch
: Whether to match in case-sensitive mode. Defaults to true
.expandDirectories
: Whether to expand directories. Disable to best match fast-glob
. Defaults to true
.onlyDirectories
: Enable to only return directories. Disables onlyFiles
if set. Defaults to false
.onlyFiles
: Enable to only return files. Defaults to true
.debug
: Enable debug logs. Useful for development purposes.tinyglobby
is downloaded many times by projects all around the world. Here's a list of notable projects that use it:
vite
pnpm
node-gyp
eslint-import-resolver-typescript
vitest
copy-webpack-plugin
ts-morph
nx
sort-package-json
unimport
tsup
lerna
cspell
nuxt
postcss-mixins
astro
unocss
vitepress
pkg-pr-new
No vulnerabilities found.
No security vulnerabilities found.