{"name":"tinyglobby","version":"0.2.2","keywords":["glob","patterns","fast","implementation"],"author":{"name":"Superchupu"},"license":"ISC","_id":"tinyglobby@0.2.2","homepage":"https://github.com/SuperchupuDev/tinyglobby#readme","bugs":{"url":"https://github.com/SuperchupuDev/tinyglobby/issues"},"dist":{"shasum":"c3b21f177d41a3c86b122cfbd3dd618870f3689f","tarball":"http://registry-npm.ywwl.com/tinyglobby/download/tinyglobby-0.2.2.tgz","fileCount":9,"integrity":"sha512-mZ2sDMaySvi1PkTp4lTo1In2zjU+cY8OvZsfwrDrx3YGRbXPX1/cbPwCR9zkm3O/Fz9Jo0F1HNgIQ1b8BepqyQ==","signatures":[{"sig":"MEYCIQDgjtUaf6DFBnfq5NleIrYR6mUiiOt3E8H6vuYGrsi38wIhAIjU/p+Qob4l/HkZpiZlu9NY5rhY2dgLcnHOJZdPqPfz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/tinyglobby@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":26384,"size":5532,"noattachment":false,"key":"/tinyglobby/-/tinyglobby-0.2.2.tgz"},"main":"dist/index.js","_from":"file:tinyglobby-0.2.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=12.0.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"lint":"biome lint","test":"tsx --test","build":"tsup","check":"biome check","format":"biome format --write","lint:fix":"biome lint --fix --unsafe","typecheck":"tsc --noEmit"},"_npmUser":{"name":"superchupu","email":"mgurriarann@gmail.com"},"_resolved":"/tmp/8b9d6242e92134bf1f30fa55fa02bb27/tinyglobby-0.2.2.tgz","_integrity":"sha512-mZ2sDMaySvi1PkTp4lTo1In2zjU+cY8OvZsfwrDrx3YGRbXPX1/cbPwCR9zkm3O/Fz9Jo0F1HNgIQ1b8BepqyQ==","repository":{"url":"git+https://github.com/SuperchupuDev/tinyglobby.git","type":"git"},"_npmVersion":"10.8.2","description":"A fast and minimal alternative to globby and fast-glob","directories":{},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"fdir":"^6.2.0","picomatch":"^4.0.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.2","tsup":"^8.2.2","typescript":"^5.5.3","@types/node":"^20.14.11","@biomejs/biome":"^1.8.3","@types/picomatch":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/tinyglobby_0.2.2_1722959469117_0.7638349740510866","host":"s3://npm-registry-packages"},"readme":"# tinyglobby\n\n<a href=\"https://www.npmjs.com/package/tinyglobby\">\n  <img src=\"https://img.shields.io/npm/v/tinyglobby.svg?maxAge=3600\" alt=\"npm version\" />\n  <img src=\"https://img.shields.io/npm/dm/tinyglobby.svg?maxAge=3600\" alt=\"monthly downloads\" />\n</a>\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, unlike globby's [23](https://npmgraph.js.org/?q=globby@14.0.2) and 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## 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- `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- [`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":1722959469291,"maintainers":[{"name":"superchupu","email":"mgurriarann@gmail.com"}],"_cnpm_publish_time":1722959469291,"dist-tags":{"latest":"0.2.17"}}