{"name":"fdir","version":"1.0.3","description":"The fastest directory crawler written for NodeJS. Zero dependencies. Grabs 10k files in 13ms.","main":"index.js","scripts":{"test":"test","benchmark":"node benchmark.js"},"repository":{"type":"git","url":"git+https://github.com/thecodrr/fdir.git"},"keywords":["util","os","sys","fs","walk","crawler","directory","files","io","speed","javascript","nodejs"],"author":{"name":"thecodrr","email":"thecodrr@protonmail.com"},"license":"MIT","bugs":{"url":"https://github.com/thecodrr/fdir/issues"},"homepage":"https://github.com/thecodrr/fdir#readme","devDependencies":{"@folder/readdir":"^2.1.0","all-files-in-tree":"^1.1.2","benny":"^3.6.14","fs-readdir-recursive":"^1.1.0","get-all-files":"^1.0.7","klaw-sync":"^6.0.0","recur-readdir":"0.0.1","recursive-files":"^1.0.2","recursive-readdir":"^2.2.2","rrdir":"^5.0.0","walk-sync":"^2.0.2"},"gitHead":"c6fa353623f10533244bce8053faeb3c2865d7e5","_id":"fdir@1.0.3","_nodeVersion":"13.9.0","_npmVersion":"6.14.1","dist":{"integrity":"sha512-CxrtkPN0orhlog3LwWfahyK7kYxjLCT6AO+f+rphBf4gIwisfBC8+bouDHyAPiMXQuu51TI+VyEp66tZhAGGtw==","shasum":"99b021a779d32ae0e97f8c4082e98f3fa9c4a94f","tarball":"http://registry-npm.ywwl.com/fdir/download/fdir-1.0.3.tgz","fileCount":5,"unpackedSize":9454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebLJICRA9TVsSAnZWagAAL1QP/1VfOH5tAyLpOIX422aS\nSmYhToj7RMHSrsiLZzZBw/yawXa11IQoQuZEcmQLDBTqBOOVf+XqwazKxyfd\n9i2iOB0Mg928x8QlzlEDQQouNEAGr+NRFmAeHrtPXZixEYP9V1Lap85xb4ci\nSEjAYH5a3HpVIitCgcvVaWzYYW57JBGpjCCxhd9KpmkfeDgWx59OdqFkmaVK\n3Q6Yari2xF8cIXI0zR7+6ovhO0Bulia7hqrTWrVC4lShQz+Xw4AybukQ8r/F\nFEjsMxp1V5SjQTauK0a1PvERT5qEUTeQYQAP2s/aP+WhAWATWvS+WRfrrSnF\nluU1GTXaIW1nGmUl5hv22gKbkr4BABa10RzUOx52hMjuPbCrl8G0w99OjMhA\n/EczcywaUKs5yNElHP9Z9UEJ1OkRvWNLEeniFSrjwbVmd6kHRY5YxPj/2dc2\nEHinhALCqemkApHMgBEA/fu8+ppZQ9zMpaRnO0jCeEWkLYjVyl9YLH47gNmQ\nLvez6ETQUsHr9RvOpirFVF4bwzOK3xcWtGcK69jjJRMOTJVh13qu7zPwTAE2\n87S4oaTLU0bSVt9KcdFYYBsXLWZ+9wtEJjY+BdhLoJHtKcdk5fBhOEPfivyw\ncV4XiVu8EtvG4iI7OmxCPFYmHiBNfCAoQaRg0RutIiE/69VfJx/RD3vOMd06\nERDi\r\n=w+DB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdCGnYdpndwRTgepZXIRzUDM26JQ1EVxM9ZldwjU2JxAIgNrou07wtMA5kOVLdhPMgHDxKoswj7eUM6eTa+aN9BQ8="}],"size":4263,"noattachment":false,"key":"/fdir/-/fdir-1.0.3.tgz"},"maintainers":[{"name":"thecodrr","email":"enkaboot@gmail.com"}],"_npmUser":{"name":"thecodrr","email":"enkaboot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fdir_1.0.3_1584181832289_0.10666282104543723"},"_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":1584181832415,"_cnpm_publish_time":1584181832415,"dist-tags":{"latest":"6.5.0"}}