mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
1.4 KiB
1.4 KiB
sidebar_label
| sidebar_label |
|---|
| install |
install() function
install(): Promise<InstalledBrowser>
Downloads and unpacks the browser archive according to the InstallOptions.
Signature
export declare function install(
options: InstallOptions & {
unpack?: true;
},
): Promise<InstalledBrowser>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
InstallOptions & { unpack?: true; } |
Returns:
Promise<InstalledBrowser>
a InstalledBrowser instance.
install(): Promise<string>
Downloads the browser archive according to the InstallOptions without unpacking.
Signature
export declare function install(
options: InstallOptions & {
unpack: false;
},
): Promise<string>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
InstallOptions & { unpack: false; } |
Returns:
Promise<string>
the absolute path to the archive.