Puppeteer Core API

puppeteer · scraping, Scraping / Crawling

High-level Node.js API to control headless Chrome/Firefox via DevTools Protocol or WebDriver BiDi, including page, browser, frame, and network interception primitives.

// 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 2024 Google Inc.
 * SPDX-License-Identifier: Apache-2.0
 */
import {mkdir, readFile, readdir, writeFile} from 'node:fs/promises';
import Module from 'node:module';
import path from 'node:path';
import posixPath from 'node:path/posix';

import esbuild from 'esbuild';
import {execa} from 'execa';
import {task} from 'hereby';

const require = Module.createRequire(import.meta.url);

export const updateVersionTask = task({
  name: 'update:version',
  run: async () => {
    // x-release-please-start-version
    const version = '25.12.0';
    // x-release-please-

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

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

Get a free API key