Socket
Socket
Sign inDemoInstall

puppeteer-extra-plugin-minmax

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-extra-plugin-minmax

Minimize/maximize puppeteer browsers in real time!


Version published
Weekly downloads
193
increased by109.78%
Maintainers
1
Weekly downloads
 
Created

Readme

Source

Minimize and Maximize Puppeteer Browsers!

This is a plugin for puppeteer-extra that allows you to minimize and maximize puppeteer browsers in real time.

Install

yarn add puppeteer-extra-plugin-minmax

Usage

const puppeteer = require("puppeteer-extra");
puppeteer.use(require("puppeteer-extra-plugin-minmax")());

async function test() {
  const browser = await puppeteer.launch({ headless: false });
  const page = await browser.newPage();

  await page.minimize();
  await page.maximize();

  await browser.close();
  console.log("all done");
}

test();

The key lines here are page.minimize() and page.maximize(). These minimize and maximize the page respectively.

Keywords

FAQs

Package last updated on 06 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc