Function readAllDirContents

  • Read all contents within a directory and store them in an object. Optionally recursive.

    Parameters

    • dir: string
    • __namedParameters: {
          excludeList?: readonly (string | RegExp)[];
          recursive?: boolean;
      }
      • OptionalexcludeList?: readonly (string | RegExp)[]
      • Optionalrecursive?: boolean

    Returns Promise<DirContents>