# puppeteer-electron

> Use Puppeteer's API with Electron

Latest version **0.0.10** (published 2020-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install puppeteer-electron
pnpm add puppeteer-electron
yarn add puppeteer-electron
bun add puppeteer-electron
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2020-09-20 |
| First published | 2019-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 (+55 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 24 |
| Author | nondanee |
| Maintainers | nondanee |
| Keywords | puppeteer, electron |

## Links

- npm: https://www.npmjs.com/package/puppeteer-electron
- Repository: https://github.com/nondanee/puppeteer-electron
- Homepage: https://github.com/nondanee/puppeteer-electron#readme
- Issues: https://github.com/nondanee/puppeteer-electron/issues
- npm.io page: https://npm.io/package/puppeteer-electron

## Dependencies (2)

- [electron](https://npm.io/package/electron.md) ^9.1.0
- [puppeteer-core](https://npm.io/package/puppeteer-core.md) ^1.18.1

## Alternatives

- [@snazzah/davey](https://npm.io/package/@snazzah/davey.md) — 1.5M weekly downloads
- [@vendure/testing](https://npm.io/package/@vendure/testing.md) — 8.3K weekly downloads
- [vue-simple-context-menu](https://npm.io/package/vue-simple-context-menu.md) — 6.6K weekly downloads
- [cypress-webpack-preprocessor-v5](https://npm.io/package/cypress-webpack-preprocessor-v5.md) — 2.1K weekly downloads
- [@backstage/plugin-catalog-backend-module-puppetdb](https://npm.io/package/@backstage/plugin-catalog-backend-module-puppetdb.md) — 1.3K weekly downloads

## Recent versions

- 0.0.10 (latest) — 2020-09-20
- 0.0.9 — 2020-09-20
- 0.0.8 — 2020-05-10
- 0.0.7 — 2020-05-09
- 0.0.6 — 2020-05-09
- 0.0.5 — 2019-07-24
- 0.0.4 — 2019-07-24
- 0.0.3 — 2019-07-06
- 0.0.2 — 2019-07-06
- 0.0.1 — 2019-07-06

## README

# Puppeteer-Electron

<img src="https://user-images.githubusercontent.com/26399680/60521458-e4360700-9d19-11e9-8185-065c395b0b65.png" height="200" align="right">

> 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

```javascript
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

- https://discuss.atom.io/t/solved-control-automate-an-electron-application-with-puppeteer/64126
- https://stackoverflow.com/questions/51847667/how-to-automate-electronjs-app
- https://github.com/peterdanis/electron-puppeteer-demo
- https://github.com/electron/electron/issues/3331
- https://github.com/electron/electron/issues/11515

## License

The MIT License

---
_Source: https://npm.io/package/puppeteer-electron · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
