{"name":"fdir","version":"6.2.0","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.2.0","homepage":"https://github.com/thecodrr/fdir#readme","bugs":{"url":"https://github.com/thecodrr/fdir/issues"},"dist":{"shasum":"9120f438d566ef3e808ca37864d9dd18e1a4f9b5","tarball":"http://registry-npm.ywwl.com/fdir/download/fdir-6.2.0.tgz","fileCount":52,"integrity":"sha512-9XaWcDl0riOX5j2kYfy0kKdg7skw3IY6kA4LFT8Tk2yF9UdrADUy8D6AJuBLtf7ISm/MksumwAHE3WVbMRyCLw==","signatures":[{"sig":"MEUCIFZ5zMYtgzHQjCy5bM8dEegRZp3+gBAuqeSI/lfvjVM8AiEA70QhKHccBXPDbJ7k+pGA5VdHSsFFuPys6RtbMLrB0Mc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58290,"size":14837,"noattachment":false,"key":"/fdir/-/fdir-6.2.0.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"db61890ca0b70f68ea0ffc2cb3fe17ca32bbecdd","scripts":{"test":"vitest run __tests__/","bench":"ts-node benchmarks/benchmark.js","build":"tsc","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.5.0","description":"The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s","directories":{},"_nodeVersion":"20.12.2","_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","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.2.0_1721622133581_0.9584083959033181","host":"s3://npm-registry-packages"},"readme":"<p align=\"center\">\r\n<img src=\"https://github.com/thecodrr/fdir/raw/master/assets/fdir.gif\" width=\"75%\"/>\r\n\r\n<h1 align=\"center\">The Fastest Directory Crawler & Globber for NodeJS</h1>\r\n<p align=\"center\">\r\n  <a href=\"https://www.npmjs.com/package/fdir\"><img src=\"https://img.shields.io/npm/v/fdir?style=for-the-badge\"/></a>\r\n  <a href=\"https://www.npmjs.com/package/fdir\"><img src=\"https://img.shields.io/npm/dt/fdir?style=for-the-badge\"/></a>\r\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>\r\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>\r\n  <a href=\"https://www.npmjs.com/package/fdir\"><img src=\"https://img.shields.io/bundlephobia/minzip/fdir?style=for-the-badge\"/></a>\r\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>\r\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>\r\n  <a href=\"./LICENSE\"><img src=\"https://img.shields.io/github/license/thecodrr/fdir?style=for-the-badge\"/></a>\r\n</p>\r\n</p>\r\n\r\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.**\r\n\r\n💡 **Stupidly Easy:** `fdir` uses expressive Builder pattern to build the crawler increasing code readability.\r\n\r\n🤖 **Zero Dependencies\\*:** `fdir` only uses NodeJS `fs` & `path` modules.\r\n\r\n🕺 **Astonishingly Small:** < 2KB in size gzipped & minified.\r\n\r\n🖮 **Hackable:** Extending `fdir` is extremely simple now that the new Builder API is here. Feel free to experiment around.\r\n\r\n_\\* `picomatch` must be installed manually by the user to support globbing._\r\n\r\n## Support\r\n\r\n> Do you like this project? **[Support me by donating](https://ko-fi.com/thecodrr)**, creating an issue, becoming a stargazer, or opening a pull request. Thanks.\r\n\r\n## 🚄 Quickstart\r\n\r\n### Installation\r\n\r\nYou can install using `npm`:\r\n\r\n```sh\r\n$ npm i fdir\r\n```\r\n\r\nor Yarn:\r\n\r\n```sh\r\n$ yarn add fdir\r\n```\r\n\r\n### Usage\r\n\r\n```ts\r\nimport { fdir } from \"fdir\";\r\n\r\n// create the builder\r\nconst api = new fdir().withFullPaths().crawl(\"path/to/dir\");\r\n\r\n// get all files in a directory synchronously\r\nconst files = api.sync();\r\n\r\n// or asynchronously\r\napi.withPromise().then((files) => {\r\n  // do something with the result here.\r\n});\r\n```\r\n\r\n## Documentation:\r\n\r\nDocumentation for all methods is available [here](/documentation.md).\r\n\r\n## 📊 Benchmarks:\r\n\r\nPlease check the benchmark against the latest version [here](/BENCHMARKS.md).\r\n\r\n## 🙏Used by:\r\n\r\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:\r\n\r\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.\r\n\r\n1. [mdn/yari](https://github.com/mdn/yari)\r\n2. [streetwriters/notesnook](https://github.com/streetwriters/notesnook)\r\n3. [zhangdaren/miniprogram-to-uniapp](https://github.com/zhangdaren/miniprogram-to-uniapp)\r\n4. [imba/imba](https://github.com/imba/imba)\r\n5. [moroshko/react-scanner](https://github.com/moroshko/react-scanner)\r\n6. [netlify/build](https://github.com/netlify/build)\r\n7. [FredKSchott/snowpack](https://github.com/FredKSchott/snowpack)\\*\r\n8. [yassinedoghri/astro-i18next](https://github.com/yassinedoghri/astro-i18next)\r\n9. [selfrefactor/rambda](https://github.com/selfrefactor/rambda)\r\n\r\n- `snowpack` has since been discontinued.\r\n\r\n## 🦮 LICENSE\r\n\r\nCopyright &copy; 2023 Abdullah Atta under MIT. [Read full text here.](https://github.com/thecodrr/fdir/raw/master/LICENSE)\r\n","publish_time":1721622133742,"maintainers":[{"name":"thecodrr","email":"enkaboot@gmail.com"}],"_cnpm_publish_time":1721622133742,"dist-tags":{"latest":"6.5.0"}}