Hierarchy (view full)

Constructors

Properties

fileObject: string | Buffer = ""

Methods

  • Parameters

    • options: {
          filename?: string;
          headers?: Record<string, string>;
          maxRedirects?: number;
          password?: string;
          token?: string;
          username?: string;
      } = {}
      • Optionalfilename?: string
      • Optionalheaders?: Record<string, string>
      • OptionalmaxRedirects?: number
      • Optionalpassword?: string
      • Optionaltoken?: string
      • Optionalusername?: string

    Returns Promise<BytesInput>

  • Parameters

    • options: {
          filename?: string;
          filepath: string;
          headers?: Record<string, string>;
          maxRedirects?: number;
          password?: string;
          token?: string;
          username?: string;
      }
      • Optionalfilename?: string
      • filepath: string
      • Optionalheaders?: Record<string, string>
      • OptionalmaxRedirects?: number
      • Optionalpassword?: string
      • Optionaltoken?: string
      • Optionalusername?: string

    Returns Promise<string>