2020-06-04 14:56:45 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [puppeteer ](./puppeteer.md ) > [BrowserFetcher ](./puppeteer.browserfetcher.md ) > [download ](./puppeteer.browserfetcher.download.md )
## BrowserFetcher.download() method
2020-06-24 08:33:19 +00:00
Initiates a GET request to download the revision from the host.
2020-06-04 14:56:45 +00:00
< b > Signature:< / b >
```typescript
2020-06-23 11:55:42 +00:00
download(revision: string, progressCallback?: (x: number, y: number) => void): Promise< BrowserFetcherRevisionInfo > ;
2020-06-04 14:56:45 +00:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2020-06-24 08:33:19 +00:00
| revision | string | The revision to download. |
| progressCallback | (x: number, y: number) => void | A function that will be called with two arguments: How many bytes have been downloaded and the total number of bytes of the download. |
2020-06-04 14:56:45 +00:00
< b > Returns:< / b >
Promise< BrowserFetcherRevisionInfo>
2020-06-24 08:33:19 +00:00
A promise with revision information when the revision is downloaded and extracted.
## Remarks
This method is affected by the current `product` <!-- --> .
2020-06-12 10:38:24 +00:00