@authless/puppeteer-extra-plugin-har
TypeScript icon, indicating that this package has built-in type declarations

3.11.5 • Public • Published

@authless/puppeteer-extra-plugin-har

This is a plugin for puppeteer-extra that allows you to create a HAR file from your page.

Install

yarn add @authless/puppeteer-extra-plugin-har

Usage

import { PluginHar } from '@authless/puppeteer-extra-plugin-har'
import puppeteer from 'puppeteer-extra'

const main = async () => {
  puppeteer.use(PluginHar({
    callback: (error: Error | null, result: { har: any, targetId: string } | null) => {
      if (result instanceof Object) {
        // inspect HAR object or store it somewhere ...
      }
    }
  }))
}

Readme

Keywords

none

Package Sidebar

Install

npm i @authless/puppeteer-extra-plugin-har

Weekly Downloads

6

Version

3.11.5

License

ISC

Unpacked Size

38.4 kB

Total Files

22

Last publish

Collaborators

  • michaelhirn