{"name":"tinyglobby","version":"0.2.12","description":"A fast and minimal alternative to globby and fast-glob","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"sideEffects":false,"author":{"name":"Superchupu"},"license":"MIT","keywords":["glob","patterns","fast","implementation"],"repository":{"type":"git","url":"git+https://github.com/SuperchupuDev/tinyglobby.git"},"bugs":{"url":"https://github.com/SuperchupuDev/tinyglobby/issues"},"homepage":"https://github.com/SuperchupuDev/tinyglobby#readme","funding":{"url":"https://github.com/sponsors/SuperchupuDev"},"dependencies":{"fdir":"^6.4.3","picomatch":"^4.0.2"},"devDependencies":{"@biomejs/biome":"^1.9.4","@types/node":"^22.13.4","@types/picomatch":"^3.0.2","fs-fixture":"^2.7.0","tsup":"^8.3.6","typescript":"^5.7.3"},"engines":{"node":">=12.0.0"},"publishConfig":{"access":"public","provenance":true},"scripts":{"build":"tsup","check":"biome check","format":"biome format --write","lint":"biome lint","lint:fix":"biome lint --fix --unsafe","test":"node --experimental-transform-types --test","test:coverage":"node --experimental-transform-types --test --experimental-test-coverage","test:only":"node --experimental-transform-types --test --test-only","typecheck":"tsc --noEmit"},"_id":"tinyglobby@0.2.12","_integrity":"sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==","_resolved":"/tmp/05b7aaccd0c8a79964ec5e45ebb21b8f/tinyglobby-0.2.12.tgz","_from":"file:tinyglobby-0.2.12.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==","shasum":"ac941a42e0c5773bd0b5d08f32de82e74a1a61b5","tarball":"http://registry-npm.ywwl.com/tinyglobby/download/tinyglobby-0.2.12.tgz","fileCount":7,"unpackedSize":31060,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/tinyglobby@0.2.12","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGJLsFelwogkDd3dXMsWAE+oWm0X3iVuYHMxSnl6NsF3AiEAg7/khcs++cI+4ho5DgCWLAPoLFJzpuTAVGVgKXT0P4g="}],"size":6803,"noattachment":false,"key":"/tinyglobby/-/tinyglobby-0.2.12.tgz"},"_npmUser":{"name":"superchupu","email":"mgurriarann@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tinyglobby_0.2.12_1740011155377_0.8659892329912942"},"_hasShrinkwrap":false,"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<string[]>`: 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<!-- should be sorted by weekly download count -->\n- [`vite`](https://github.com/vitejs/vite)\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- [`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- [`vite-plugin-checker`](https://github.com/fi3ework/vite-plugin-checker)\n- [`cspell`](https://github.com/streetsidesoftware/cspell)\n- [`nuxt`](https://github.com/nuxt/nuxt)\n- [`postcss-mixins`](https://github.com/postcss/postcss-mixins)\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","publish_time":1740011155583,"maintainers":[{"name":"superchupu","email":"mgurriarann@gmail.com"}],"_cnpm_publish_time":1740011155583,"dist-tags":{"latest":"0.2.17"}}