ec201744f0
This PR adds configurations files to `puppeteer`'s methods for configuration. Under the hood, `puppeteer` relies on https://www.npmjs.com/package/cosmiconfig which resolves several formats of configuration: - a `puppeteer` property in package.json - a `.puppeteerrc` file in JSON or YAML format - a `.puppeteerrc.json`, `.puppeteerrc.yaml`, `.puppeteerrc.yml`, `.puppeteerrc.js`, or `.puppeteerrc.cjs` file - a `puppeteer.config.js` or `puppeteer.config.cjs` CommonJS module exporting an object Documentation will be added later. Fixed: #9128
30 lines
1.0 KiB
Markdown
30 lines
1.0 KiB
Markdown
---
|
|
sidebar_label: PuppeteerNode.createBrowserFetcher
|
|
---
|
|
|
|
# PuppeteerNode.createBrowserFetcher() method
|
|
|
|
> Warning: This API is now obsolete.
|
|
>
|
|
> If you are using `puppeteer-core`, do not use this method. Just construct [BrowserFetcher](./puppeteer.browserfetcher.md) manually.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
class PuppeteerNode {
|
|
createBrowserFetcher(options: Partial<BrowserFetcherOptions>): BrowserFetcher;
|
|
}
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
| options | Partial<[BrowserFetcherOptions](./puppeteer.browserfetcheroptions.md)> | Set of configurable options to specify the settings of the BrowserFetcher. |
|
|
|
|
**Returns:**
|
|
|
|
[BrowserFetcher](./puppeteer.browserfetcher.md)
|
|
|
|
A new BrowserFetcher instance.
|