Hierarchy

  • Downloader

Constructors

  • Parameters

    • Optional defaultDirectory: string

    Returns Downloader

Properties

#defaultDirectory?: null | string

Methods

  • Parameters

    • ms: number

    Returns Promise<unknown>

  • Parameters

    • url: string
    • path: string
    • Optional options: Options

    Returns Promise<{
        filename: string;
    }>

  • Parameters

    • url: string
    • Optional options: Options

    Returns Promise<unknown>

  • Parameters

    • options: (Pick<RequestOptions, "headers" | "auth" | "agent" | "timeout" | "maxHeaderSize"> & {
          extractFilename?: boolean;
          maxRedirects?: number;
          name?: string;
          path?: string;
      } & {
          url: string;
      })[]

    Returns Promise<{
        errors: Error[];
        success: string[];
    }>

  • Parameters

    • path: null | string

    Returns Downloader

Generated using TypeDoc