{"name":"fdir","version":"6.0.0","description":"The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s","main":"dist/index.js","scripts":{"prepublishOnly":"npm run test && npm run build","build":"tsc","test":"tap --ts --no-check-coverage __tests__/","test:coverage":"tap --ts --no-check-coverage --coverage-report=html __tests__/","bench":"node benchmarks/benchmark.js","bench:glob":"node benchmarks/glob-benchmark.js","bench:fdir":"node benchmarks/fdir-benchmark.js","release":"./scripts/release.sh"},"repository":{"type":"git","url":"git+https://github.com/thecodrr/fdir.git"},"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"},"types":"index.d.ts","license":"MIT","bugs":{"url":"https://github.com/thecodrr/fdir/issues"},"homepage":"https://github.com/thecodrr/fdir#readme","devDependencies":{"@types/glob":"^8.0.1","@types/mock-fs":"^4.13.1","@types/node":"^18.13.0","@types/picomatch":"^2.3.0","@types/tap":"^15.0.8","all-files-in-tree":"^1.1.2","benny":"^3.7.1","expect":"^29.4.2","fast-glob":"^3.2.2","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","fs-readdir-recursive":"^1.1.0","get-all-files":"^4.1.0","glob":"^8.1.0","klaw-sync":"^6.0.0","mock-fs":"^5.2.0","picomatch":"^2.3.1","recur-readdir":"0.0.1","recursive-files":"^1.0.2","recursive-fs":"^2.1.0","recursive-readdir":"^2.2.3","rrdir":"^10.1.1","systeminformation":"^5.17.8","tap":"^16.3.4","tiny-glob":"^0.2.9","ts-node":"^10.9.1","typescript":"^4.9.5","walk-sync":"^3.0.0"},"peerDependencies":{"picomatch":"2.x"},"peerDependenciesMeta":{"picomatch":{"optional":true}},"gitHead":"d4b6e71dd478d115b9170b06a8f1daa6dcb0752a","_id":"fdir@6.0.0","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-OTY4oARmFlLhd6dMi3qWGW7MkSi5cRmorjwBp1X9SE51s61qkKspeTSPOSKzCNb/+gXkhayqQonMALkEEq/tqQ==","shasum":"277a777a39d7e54da2e4f15ed3d3ba95a4556b36","tarball":"http://registry-npm.ywwl.com/fdir/download/fdir-6.0.0.tgz","fileCount":50,"unpackedSize":54369,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5HXwPGjnaxU7i5RHkUaZlW42ZlfWyUZhW6/e1C9F3gwIhAIwOZkNv45YyjdESqiPvWhoxJdvEI+lN2a3lqGCDco3N"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4+R2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrr2w//QJ6AK/2FWFLRkKY3ASax6sw0N925aeI4k1UWe9nv+vJYpLqD\r\nHz94NKI1aiHKQprQKKZpUZ+RMkCivGLOxjJJUCAtlMlMsKrg1knSiN05IsUE\r\nkfCcnF1N6B6X4XBL+hKhpvtIkuf+GObcd59EBXCFZk261MDXsNlL8PtNBX23\r\nZ5pSsw6F1TPRGq1g48nPARVOc0IGqZjECrYItPOd9oveZd9Xz+4QwBQkCvDh\r\n4O0YQTJ62L0+zAnG2TsvuNztT0oQW0ZaCaK20eI3ELaMucT3uR19CqwjDjEm\r\nqVrt8bW40ULXRRbaVh98tk379P1lQh+CSAIGXX+zOFobMXTRqAXy5AFVC7H3\r\n6M/ZVTnuc6WPrghQ1sIu2DvDXLMKDFCwyilgAP9yC2zRbzZ9z9C3GBBG+2/z\r\nxXn1yJRH6KjmakjwmOtFGANSbPCdfEfFCnxN+Xyzrks9ULs2d0m3MYNvwnDy\r\nJDj58BVo4obZIz6syxi0DyEYRD25nOUSIs4TYqjYV2wMrdrWpo0bTa77uuP0\r\nn2iJrLZ0xQFhYIIHclBBnSWl3qzsRatRow9+4+jymOmHWwZmpvOisxBghkrM\r\nlPRyWoohnvtEX7slCouSORyh7cVL3RhrqJGPHIKwI+YCbm/8ponyC2ktzdjU\r\nlcwn2McUbnxd7WuUE7mYw7TjNFa5Eii5zCE=\r\n=XDZM\r\n-----END PGP SIGNATURE-----\r\n","size":13335,"noattachment":false,"key":"/fdir/-/fdir-6.0.0.tgz"},"_npmUser":{"name":"thecodrr","email":"enkaboot@gmail.com"},"directories":{},"maintainers":[{"name":"thecodrr","email":"enkaboot@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fdir_6.0.0_1675879542248_0.7946965134011363"},"_hasShrinkwrap":false,"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 100k+ 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. [immich-app/CLI](https://github.com/immich-app/CLI)\r\n10. [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":1675879542434,"_cnpm_publish_time":1675879542434,"dist-tags":{"latest":"6.5.0"}}