puppeteer-extra-plugin-font-size
v2.3.3
Published
Adjust font sizes in puppeteer.
Downloads
582
Maintainers
Readme
puppeteer-extra-plugin-font-size
A plugin for puppeteer-extra.
Install
yarn add puppeteer-extra-plugin-font-size
API
Table of Contents
Plugin
Extends: PuppeteerExtraPlugin
Modify/increase the default font size in puppeteer.
Type: function (opts)
opts
Object Options (optional, default{}
)opts.defaultFontSize
Number Default browser font size (optional, default20
)
Example:
const puppeteer = require('puppeteer-extra')
puppeteer.use(require('puppeteer-extra-plugin-font-size')())
// or
puppeteer.use(require('puppeteer-extra-plugin-font-size')({defaultFontSize: 18}))
const browser = await puppeteer.launch()