kaven-utils - v6.1.2
    Preparing search index...

    Function EnumerateFiles

    • Asynchronously enumerates files starting from one or more input paths.

      This async generator yields file paths (as strings) discovered while traversing the provided path(s). Directory traversal is breadth-first (queue-based).

      Parameters

      Returns AsyncIterable<string>

      // Recursively enumerate all files under "src" and "test"
      for await (const file of EnumerateFiles(["src", "test"])) {
      console.log(file);
      }

      6.1.1

      2025-10-23