6.4.3 • Published 5 months ago

fdir v6.4.3

Weekly downloads
5,650
License
MIT
Repository
github
Last release
5 months ago

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.

💡 Stupidly Easy: fdir uses expressive Builder pattern to build the crawler increasing code readability.

🤖 Zero Dependencies*: fdir only uses NodeJS fs & path modules.

🕺 Astonishingly Small: < 2KB in size gzipped & minified.

🖮 Hackable: Extending fdir is extremely simple now that the new Builder API is here. Feel free to experiment around.

* picomatch must be installed manually by the user to support globbing.

🚄 Quickstart

Installation

You can install using npm:

$ npm i fdir

or Yarn:

$ yarn add fdir

Usage

import { fdir } from "fdir";

// create the builder
const api = new fdir().withFullPaths().crawl("path/to/dir");

// get all files in a directory synchronously
const files = api.sync();

// or asynchronously
api.withPromise().then((files) => {
  // do something with the result here.
});

Documentation:

Documentation for all methods is available here.

📊 Benchmarks:

Please check the benchmark against the latest version here.

🙏Used by:

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:

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.

  1. rollup/plugins
  2. SuperchupuDev/tinyglobby
  3. pulumi/pulumi
  4. dotenvx/dotenvx
  5. mdn/yari
  6. streetwriters/notesnook
  7. imba/imba
  8. moroshko/react-scanner
  9. netlify/build
  10. yassinedoghri/astro-i18next
  11. selfrefactor/rambda
  12. whyboris/Video-Hub-App

🦮 LICENSE

Copyright © 2024 Abdullah Atta under MIT. Read full text here.

@knitkode/kms@infinitebrahmanuniverse/nolb-fd@everything-registry/sub-chunk-1654@aburkov/scriptssvelte-language-serverweapp-vitex-mpaas-to-uniappwhat-is-word-clixeststormodespinnesvelte-checksveldoc@dotenvx/dotenvx@dotenvx/dotenvx-ext-hub@dotenvx/dotenvx-ext-vault@ctx-core/build@comity/islands@conneryn/immichjustwebkvuploader@hadicph/vite-plugin-extension@hexatool/fixturessqlauthzsuitcasejssst-customtinyglobbytyping-game-clitorrentzip@ampt/nextjs@atlaspack/parcel-to-atlaspack@astrobook/core@aella/core@brigad/eslint-formatter-github-checks@cloudcannon/data-extractor@cloudcannon/reader@343dev/markdown-lint@343dev/optimizt@acrontum/filesystem-template@acrontum/fst@adbayb/stack@data-fair/lib-types-buildervue2htmlts-runtime-validationvalid-directory@gramio/autoload@gracile/engine@lucascaro/ws3sync@leomca/yari-blog@medusajs/admin-vite-plugin@netlify/build@netlify/cnm-plugin@nibbs66/buttons-pkg@epinova/webpack@mdn/yari@medusajs/vite-plugin-extension@mihkeleidast/react-scanner@memori/server@mjefi/instags@incremental.design/box-base@kjam/cli@pulumi/pulumi@sagrimson/snowpack@prismx/crisp@radixlabs/snowpack@orbitor-io/cosmos-sdk@skeleton/router@souptik/immich@simulacrum/foundation-simulator@rollup/plugin-commonjsminiprogram-to-uniappminiprogram-to-uniapp-selfmifan-aotemanminify-pixnapi-rsnuxt-pagescmspath-priorityrollup-plugin-licenserubick-nativereact-feedback-formssruptorscan-project-toolsnimbus-note-exporterni-game-enginephatbt.cspg-generatorphojsportfolio-types2pure-indexrecuvrebuildjsquamdoloremquesnowpacksnowpack-gbsintrecusandaereact-scannerreact-scanner-flowreact-scanner-orbitsnow300snow300-astro
6.4.3

5 months ago

6.4.1

8 months ago

6.4.2

8 months ago

6.4.0

9 months ago

6.3.0

10 months ago

6.2.0

11 months ago

6.1.1

2 years ago

6.1.0

2 years ago

6.0.2

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

5.3.0

3 years ago

5.2.1

3 years ago

5.2.0

3 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.4.3

5 years ago

3.4.2

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.0

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago