{"name":"tinyglobby","version":"0.2.9","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","dependencies":{"fdir":"^6.4.0","picomatch":"^4.0.2"},"devDependencies":{"@biomejs/biome":"^1.9.2","@types/node":"^22.7.4","@types/picomatch":"^3.0.1","fs-fixture":"^2.4.0","tsup":"^8.3.0","typescript":"^5.6.2"},"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/**/*.test.ts","test:coverage":"node --experimental-transform-types --test --experimental-test-coverage test/**/*.test.ts","test:only":"node --experimental-transform-types --test --test-only test/**/*.test.ts","typecheck":"tsc --noEmit"},"_id":"tinyglobby@0.2.9","_integrity":"sha512-8or1+BGEdk1Zkkw2ii16qSS7uVrQJPre5A9o/XkWPATkk23FZh/15BKFxPnlTy6vkljZxLqYCzzBMj30ZrSvjw==","_resolved":"/tmp/e6080e14c7efa38f1f5e59209d41e7eb/tinyglobby-0.2.9.tgz","_from":"file:tinyglobby-0.2.9.tgz","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-8or1+BGEdk1Zkkw2ii16qSS7uVrQJPre5A9o/XkWPATkk23FZh/15BKFxPnlTy6vkljZxLqYCzzBMj30ZrSvjw==","shasum":"6baddd1b0fe416403efb0dd40442c7d7c03c1c66","tarball":"http://registry-npm.ywwl.com/tinyglobby/download/tinyglobby-0.2.9.tgz","fileCount":7,"unpackedSize":23683,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/tinyglobby@0.2.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFLIJGQyecptXzxY5xMmGo9VmLgVTI7bVid+X6pa9B4AiBJ3NvivHLFz8CPx21CC4wRfYjJn3fQMwIdYGKlioe29Q=="}],"size":5753,"noattachment":false,"key":"/tinyglobby/-/tinyglobby-0.2.9.tgz"},"_npmUser":{"name":"superchupu","email":"mgurriarann@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tinyglobby_0.2.9_1727777153146_0.19340250772392076"},"_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.0.2)\nand `fast-glob`'s [17](https://npmgraph.js.org/?q=fast-glob@3.3.2).\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`. (TEMP DISABLED due to critical bug)\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\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- [`vitest`](https://github.com/vitest-dev/vitest)\n- [`tsup`](https://github.com/egoist/tsup)\n- [`nuxt`](https://github.com/nuxt/nuxt)\n- [`vite-plugin-pwa`](https://github.com/vite-pwa/vite-plugin-pwa)\n- [`size-limit`](https://github.com/ai/size-limit)\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":1727777153334,"maintainers":[{"name":"superchupu","email":"mgurriarann@gmail.com"}],"_cnpm_publish_time":1727777153334,"dist-tags":{"latest":"0.2.17"}}