puppeteer-core

v15.0.0
A high-level API to control headless Chrome over the DevTools Protocol
puppeteer chrome headless automation

doc

node utils/doclint/cli.js

lint

npm run build && npm run lint:eslint && npm run doc && npm run lint:prettier

test

npm run lint --silent && npm run test:unit:coverage

build

npm run build:tsc && npm run generate:types && npm run generate:esm-package-json

format

prettier --write .

prepare

node typescript-if-required.js && ([[ $HUSKY = 0 ]] || husky install)

build:tsc

npm run clean:lib && tsc --version && (npm run build:tsc:cjs && npm run build:tsc:esm)

clean:lib

rimraf lib

test:unit

npm run build:test && mocha

build:test

tsc -b test

clean:docs

rimraf docs-api-json

commitlint

commitlint --from=HEAD~1

test:debug

npm run build:test && mocha --inspect-brk

test:types

ts-node -s scripts/test-ts-definition-files.ts

lint:eslint

([ "$CI" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)

test:install

scripts/test-install.sh

build:tsc:cjs

tsc -b src/tsconfig.cjs.json

build:tsc:esm

tsc -b src/tsconfig.esm.json

generate:docs

npm run generate:types && node utils/remove-tag.js

lint:prettier

prettier --check .

generate:types

npm run clean:docs && api-extractor run --local --verbose

prepublishOnly

npm run build

lint:eslint:fix

eslint --ext js --ext ts --fix .

test:pinned-deps

ts-node -s scripts/ensure-pinned-deps

test:unit:firefox

cross-env PUPPETEER_PRODUCT=firefox npm run test:unit

test:unit:coverage

c8 --check-coverage --lines 94 npm run test:unit

generate:docs:testing

commonmark docs/api.md > docs/api.html

test:protocol-revision

ts-node -s scripts/ensure-correct-devtools-protocol-package

generate:esm-package-json

echo '{"type": "module"}' > lib/esm/package.json

test:unit:chrome-headless

cross-env HEADLESS=chrome npm run test:unit

Metadata

  • Apache-2.0
  • >=14.1.0
  • The Chromium Authors
  • released 6/23/2022

Downloads