{"name":"fdir","version":"6.4.5","keywords":["util","os","sys","fs","walk","crawler","directory","files","io","tiny-glob","glob","fast-glob","speed","javascript","nodejs"],"author":{"name":"thecodrr","email":"thecodrr@protonmail.com"},"license":"MIT","_id":"fdir@6.4.5","maintainers":[{"name":"thecodrr","email":"enkaboot@gmail.com"}],"homepage":"https://github.com/thecodrr/fdir#readme","bugs":{"url":"https://github.com/thecodrr/fdir/issues"},"dist":{"shasum":"328e280f3a23699362f95f2e82acf978a0c0cb49","tarball":"http://registry-npm.ywwl.com/fdir/download/fdir-6.4.5.tgz","fileCount":43,"integrity":"sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==","signatures":[{"sig":"MEQCICwIvDO2PjwKvLmRGhLwq61U/tMQD4Bo5zfm+jl2FkTrAiBs5pOkB+Hd3kE5UBzmfcyPwIRHEh2Iei3vTOpGF+YN9Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45866,"size":12705,"noattachment":false,"key":"/fdir/-/fdir-6.4.5.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7a72642f2caf857c92b99fc462d7909800e26174","scripts":{"test":"vitest run __tests__/","bench":"ts-node benchmarks/benchmark.js","build":"tsc","format":"prettier --write src __tests__ benchmarks","release":"./scripts/release.sh","bench:fdir":"ts-node benchmarks/fdir-benchmark.ts","bench:glob":"ts-node benchmarks/glob-benchmark.ts","test:watch":"vitest __tests__/","test:coverage":"vitest run --coverage __tests__/","prepublishOnly":"npm run test && npm run build"},"_npmUser":{"name":"thecodrr","email":"enkaboot@gmail.com"},"repository":{"url":"git+https://github.com/thecodrr/fdir.git","type":"git"},"_npmVersion":"10.8.2","description":"The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s","directories":{},"_nodeVersion":"20.18.1","_hasShrinkwrap":false,"devDependencies":{"glob":"^10.3.10","benny":"^3.7.1","fdir1":"npm:fdir@1.2.0","fdir2":"npm:fdir@2.1.0","fdir3":"npm:fdir@3.4.2","fdir4":"npm:fdir@4.1.0","fdir5":"npm:fdir@5.0.0","rrdir":"^12.1.0","expect":"^29.7.0","vitest":"^0.34.6","mock-fs":"^5.2.0","ts-node":"^10.9.1","prettier":"^3.5.3","fast-glob":"^3.3.2","klaw-sync":"^6.0.0","picomatch":"^4.0.2","tiny-glob":"^0.2.9","walk-sync":"^3.0.0","@types/tap":"^15.0.11","typescript":"^5.3.2","@types/glob":"^8.1.0","@types/node":"^20.9.4","recursive-fs":"^2.1.0","get-all-files":"^4.1.0","recur-readdir":"0.0.1","@types/mock-fs":"^4.13.4","recursive-files":"^1.0.2","@types/picomatch":"^3.0.0","all-files-in-tree":"^1.1.2","recursive-readdir":"^2.2.3","systeminformation":"^5.21.17","@vitest/coverage-v8":"^0.34.6","fs-readdir-recursive":"^1.1.0","csv-to-markdown-table":"^1.3.1"},"peerDependencies":{"picomatch":"^3 || ^4"},"peerDependenciesMeta":{"picomatch":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/fdir_6.4.5_1748408830004_0.1969686659385923","host":"s3://npm-registry-packages-npm-production"},"readme":"<p align=\"center\">\n<img src=\"https://github.com/thecodrr/fdir/raw/master/assets/fdir.gif\" width=\"75%\"/>\n\n<h1 align=\"center\">The Fastest Directory Crawler & Globber for NodeJS</h1>\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/fdir\"><img src=\"https://img.shields.io/npm/v/fdir?style=for-the-badge\"/></a>\n  <a href=\"https://www.npmjs.com/package/fdir\"><img src=\"https://img.shields.io/npm/dw/fdir?style=for-the-badge\"/></a>\n  <a href=\"https://codeclimate.com/github/thecodrr/fdir/maintainability\"><img src=\"https://img.shields.io/codeclimate/maintainability-percentage/thecodrr/fdir?style=for-the-badge\"/></a>\n  <a href=\"https://coveralls.io/github/thecodrr/fdir?branch=master\"><img src=\"https://img.shields.io/coveralls/github/thecodrr/fdir?style=for-the-badge\"/></a>\n  <a href=\"https://www.npmjs.com/package/fdir\"><img src=\"https://img.shields.io/bundlephobia/minzip/fdir?style=for-the-badge\"/></a>\n  <a href=\"https://www.producthunt.com/posts/fdir-every-millisecond-matters\"><img src=\"https://img.shields.io/badge/ProductHunt-Upvote-red?style=for-the-badge&logo=product-hunt\"/></a>\n  <a href=\"https://dev.to/thecodrr/how-i-wrote-the-fastest-directory-crawler-ever-3p9c\"><img src=\"https://img.shields.io/badge/dev.to-Read%20Blog-black?style=for-the-badge&logo=dev.to\"/></a>\n  <a href=\"./LICENSE\"><img src=\"https://img.shields.io/github/license/thecodrr/fdir?style=for-the-badge\"/></a>\n</p>\n</p>\n\n⚡ **The Fastest:** Nothing similar (in the NodeJS world) beats `fdir` in speed. It can easily crawl a directory containing **1 million files in < 1 second.**\n\n💡 **Stupidly Easy:** `fdir` uses expressive Builder pattern to build the crawler increasing code readability.\n\n🤖 **Zero Dependencies\\*:** `fdir` only uses NodeJS `fs` & `path` modules.\n\n🕺 **Astonishingly Small:** < 2KB in size gzipped & minified.\n\n🖮 **Hackable:** Extending `fdir` is extremely simple now that the new Builder API is here. Feel free to experiment around.\n\n_\\* `picomatch` must be installed manually by the user to support globbing._\n\n## 🚄 Quickstart\n\n### Installation\n\nYou can install using `npm`:\n\n```sh\n$ npm i fdir\n```\n\nor Yarn:\n\n```sh\n$ yarn add fdir\n```\n\n### Usage\n\n```ts\nimport { fdir } from \"fdir\";\n\n// create the builder\nconst api = new fdir().withFullPaths().crawl(\"path/to/dir\");\n\n// get all files in a directory synchronously\nconst files = api.sync();\n\n// or asynchronously\napi.withPromise().then((files) => {\n  // do something with the result here.\n});\n```\n\n## Documentation:\n\nDocumentation for all methods is available [here](/documentation.md).\n\n## 📊 Benchmarks:\n\nPlease check the benchmark against the latest version [here](/BENCHMARKS.md).\n\n## 🙏Used by:\n\n`fdir` is downloaded over 200k+ times a week by projects around the world. Here's a list of some notable projects using `fdir` in production:\n\n> Note: if you think your project should be here, feel free to open an issue. Notable is anything with a considerable amount of GitHub stars.\n\n1. [rollup/plugins](https://github.com/rollup/plugins)\n2. [SuperchupuDev/tinyglobby](https://github.com/SuperchupuDev/tinyglobby)\n3. [pulumi/pulumi](https://github.com/pulumi/pulumi)\n4. [dotenvx/dotenvx](https://github.com/dotenvx/dotenvx)\n5. [mdn/yari](https://github.com/mdn/yari)\n6. [streetwriters/notesnook](https://github.com/streetwriters/notesnook)\n7. [imba/imba](https://github.com/imba/imba)\n8. [moroshko/react-scanner](https://github.com/moroshko/react-scanner)\n9. [netlify/build](https://github.com/netlify/build)\n10. [yassinedoghri/astro-i18next](https://github.com/yassinedoghri/astro-i18next)\n11. [selfrefactor/rambda](https://github.com/selfrefactor/rambda)\n12. [whyboris/Video-Hub-App](https://github.com/whyboris/Video-Hub-App)\n\n## 🦮 LICENSE\n\nCopyright &copy; 2024 Abdullah Atta under MIT. [Read full text here.](https://github.com/thecodrr/fdir/raw/master/LICENSE)\n","publish_time":1748408830182,"_cnpm_publish_time":1748408830182,"dist-tags":{"latest":"6.5.0"}}