Options
All
  • Public
  • Public/Protected
  • All
Menu

BrowserFetcher can download and manage different versions of Chromium.

Hierarchy

  • BrowserFetcher

Index

Methods

canDownload

  • canDownload(revision: string): Promise<boolean>
  • The method initiates a HEAD request to check if the revision is available.

    Parameters

    • revision: string

    Returns Promise<boolean>

download

  • download(revision: string, progressCallback?: (downloadBytes: number, totalBytes: number) => void): Promise<RevisionInfo>
  • The method initiates a GET request to download the revision from the host.

    Parameters

    • revision: string
    • Optional progressCallback: (downloadBytes: number, totalBytes: number) => void
        • (downloadBytes: number, totalBytes: number): void
        • Parameters

          • downloadBytes: number
          • totalBytes: number

          Returns void

    Returns Promise<RevisionInfo>

localRevisions

  • localRevisions(): Promise<string[]>
  • Returns Promise<string[]>

platform

  • platform(): LiteralUnion<"mac" | "win32" | "win64" | "linux">
  • Returns LiteralUnion<"mac" | "win32" | "win64" | "linux">

product

  • product(): LiteralUnion<"chrome" | "firefox">
  • Returns LiteralUnion<"chrome" | "firefox">

remove

  • remove(revision: string): Promise<void>
  • Parameters

    • revision: string

    Returns Promise<void>

revisionInfo

  • Parameters

    • revision: string

    Returns RevisionInfo

Generated using TypeDoc