JSPM

  • Created
  • Published
  • Downloads 806
  • Score
    100M100P100Q86466F
  • License MIT

Core Playwright screenshot functionality for Cappa

Package Exports

  • @cappa/core
  • @cappa/core/package.json

Readme

Core Package

This package contains the core functionality for Cappa.

It is the foundation of the Cappa CLI and server. It wraps the Playwright API and provides a set of helpers for capturing screenshots.

It also provides an api to interact with the local files system to store the screenshots.

Example

import { ScreenshotTool } from "@cappa/core";

const screenshotTool = new ScreenshotTool();

screenshotTool.capture(page, "my-page", {
  fullPage: true,
});