src/puppeteer.ts

puppeteer · packages/puppeteer/src/puppeteer.ts · typescript · Apache-2.0
scraping

Entry point for Puppeteer, re-exporting core APIs and initializing node instance.

// Source: https://github.com/puppeteer/puppeteer | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * @license
 * Copyright 2017 Google Inc.
 * SPDX-License-Identifier: Apache-2.0
 */

export * from 'puppeteer-core';

import {PuppeteerNode} from 'puppeteer-core';

import {getConfiguration} from './getConfiguration.js';

/**
 * @public
 */
// @ts-expect-error using internal API.
const puppeteer = new PuppeteerNode({
  isPuppeteerCore: false,
  configuration: getConfiguration,
});

export const {
  /**
   * @public
   */
  connect,
  /**
   * @public
   */
  defaultArgs,
  /**
   * @public
   */
  executablePath,
  /**
   * @public
   */
  launch,
  /**
   * @public
   */
  trimC

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key