UNPKG

@cityssm/puppeteer-launch

Version:

Launch Puppeteer, falling back to system browsers when the cached ones aren't working or aren't available.

10 lines (9 loc) 417 B
import { type Browser, type LaunchOptions } from 'puppeteer'; /** * Launches a Puppeteer browser instance. * Automatically falls back to a system browser if no browser is available in the Puppeteer cache. * @param options - Optional launch parameters * @returns - A Puppeteer browser instance. */ export default function launch(options?: LaunchOptions): Promise<Browser>; export * as puppeteer from 'puppeteer';