{"id":16595338,"url":"https://github.com/superchupudev/tinyglobby","last_synced_at":"2025-05-14T10:11:30.205Z","repository":{"id":249689010,"uuid":"832295123","full_name":"SuperchupuDev/tinyglobby","owner":"SuperchupuDev","description":"A fast and minimal alternative to globby and fast-glob","archived":false,"fork":false,"pushed_at":"2025-04-11T22:54:25.000Z","size":206,"stargazers_count":328,"open_issues_count":21,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T03:59:18.125Z","etag":null,"topics":["glob"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/tinyglobby","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperchupuDev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"SuperchupuDev"}},"created_at":"2024-07-22T18:13:43.000Z","updated_at":"2025-04-08T07:05:13.000Z","dependencies_parsed_at":"2024-07-27T00:29:55.508Z","dependency_job_id":"374637a3-9a47-4181-b506-2aebc33708ea","html_url":"https://github.com/SuperchupuDev/tinyglobby","commit_stats":null,"previous_names":["superchupudev/tinyglobby"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperchupuDev%2Ftinyglobby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperchupuDev%2Ftinyglobby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperchupuDev%2Ftinyglobby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperchupuDev%2Ftinyglobby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperchupuDev","download_url":"https://codeload.github.com/SuperchupuDev/tinyglobby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661706,"owners_count":21141450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glob"],"created_at":"2024-10-11T23:49:32.580Z","updated_at":"2025-05-14T10:11:30.193Z","avatar_url":"https://github.com/SuperchupuDev.png","language":"TypeScript","funding_links":["https://github.com/sponsors/SuperchupuDev"],"categories":[],"sub_categories":[],"readme":"# tinyglobby\n\n[![npm version](https://img.shields.io/npm/v/tinyglobby.svg?maxAge=3600)](https://npmjs.com/package/tinyglobby)\n[![monthly downloads](https://img.shields.io/npm/dm/tinyglobby.svg?maxAge=3600)](https://npmjs.com/package/tinyglobby)\n\nA fast and minimal alternative to globby and fast-glob, meant to behave the same way.\n\nBoth globby and fast-glob present some behavior no other globbing lib has,\nwhich makes it hard to manually replace with something smaller and better.\n\nThis library uses only two subdependencies, compared to `globby`'s [23](https://npmgraph.js.org/?q=globby@14.1.0)\nand `fast-glob`'s [17](https://npmgraph.js.org/?q=fast-glob@3.3.3).\n\n## Usage\n\n```js\nimport { glob, globSync } from 'tinyglobby';\n\nawait glob(['files/*.ts', '!**/*.d.ts'], { cwd: 'src' });\nglobSync(['src/**/*.ts'], { ignore: ['**/*.d.ts'] });\n```\n\n## API\n\n- `glob(patterns: string | string[], options: GlobOptions): Promise\u003cstring[]\u003e`: Returns a promise with an array of matches.\n- `globSync(patterns: string | string[], options: GlobOptions): string[]`: Returns an array of matches.\n- `convertPathToPattern(path: string): string`: Converts a path to a pattern depending on the platform.\n- `escapePath(path: string): string`: Escapes a path's special characters depending on the platform.\n- `isDynamicPattern(pattern: string, options?: GlobOptions): boolean`: Checks if a pattern is dynamic.\n\n## Options\n\n- `patterns`: An array of glob patterns to search for. Defaults to `['**/*']`.\n- `ignore`: An array of glob patterns to ignore.\n- `cwd`: The current working directory in which to search. Defaults to `process.cwd()`.\n- `absolute`: Whether to return absolute paths. Defaults to `false`.\n- `dot`: Whether to allow entries starting with a dot. Defaults to `false`.\n- `deep`: Maximum depth of a directory. Defaults to `Infinity`.\n- `followSymbolicLinks`: Whether to traverse and include symbolic links. Defaults to `true`.\n- `caseSensitiveMatch`: Whether to match in case-sensitive mode. Defaults to `true`.\n- `expandDirectories`: Whether to expand directories. Disable to best match `fast-glob`. Defaults to `true`.\n- `onlyDirectories`: Enable to only return directories. Disables `onlyFiles` if set. Defaults to `false`.\n- `onlyFiles`: Enable to only return files. Defaults to `true`.\n- `debug`: Enable debug logs. Useful for development purposes.\n\n## Used by\n\n`tinyglobby` is downloaded many times by projects all around the world. Here's a list of notable projects that use it:\n\n\u003c!-- should be sorted by weekly download count --\u003e\n- [`vite`](https://github.com/vitejs/vite)\n- [`pnpm`](https://github.com/pnpm/pnpm)\n- [`node-gyp`](https://github.com/nodejs/node-gyp)\n- [`eslint-import-resolver-typescript`](https://github.com/import-js/eslint-import-resolver-typescript)\n- [`vitest`](https://github.com/vitest-dev/vitest)\n- [`copy-webpack-plugin`](https://github.com/webpack-contrib/copy-webpack-plugin)\n- [`ts-morph`](https://github.com/dsherret/ts-morph)\n- [`nx`](https://github.com/nrwl/nx)\n- [`sort-package-json`](https://github.com/keithamus/sort-package-json)\n- [`unimport`](https://github.com/unjs/unimport)\n- [`tsup`](https://github.com/egoist/tsup)\n- [`lerna`](https://github.com/lerna/lerna)\n- [`cspell`](https://github.com/streetsidesoftware/cspell)\n- [`nuxt`](https://github.com/nuxt/nuxt)\n- [`postcss-mixins`](https://github.com/postcss/postcss-mixins)\n- [`astro`](https://github.com/withastro/astro)\n- [`unocss`](https://github.com/unocss/unocss)\n- [`vitepress`](https://github.com/vuejs/vitepress)\n- [`pkg-pr-new`](https://github.com/stackblitz-labs/pkg.pr.new)\n- Your own project? [Open an issue](https://github.com/SuperchupuDev/tinyglobby/issues)\nif you feel like this list is incomplete.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperchupudev%2Ftinyglobby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperchupudev%2Ftinyglobby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperchupudev%2Ftinyglobby/lists"}