0.0.10 • Published 4 years ago

puppeteer-electron v0.0.10

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

Puppeteer-Electron

A version of Puppeteer that use Electron instead of Chromium

⚠️ BEWARE: Experimental. Just for test. Can not work with all Puppeteer APIs.

Motivation

In comparison with the full-featured Chromium browser (~108MB Mac, ~113MB Linux, ~141MB Win for ZIP package), A portable alternative ------ Electron is able to handle most daily tasks but has half of Chromium's size (~55MB Mac, ~63MB Linux, ~58MB Win for ZIP package)

Usage

const puppeteer = require('puppeteer-electron')

;(async () => {
	const app = await puppeteer.launch({ headless: false }) // default is true
	const pages = await app.pages()
	const [page] = pages
	await page.goto('https://bing.com')

	setTimeout(async () => await app.close(), 5000)
})()

Reference

License

The MIT License

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago