3.1.0 • Published 11 months ago

@cityssm/puppeteer-launch v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Puppeteer Launch

npm (scoped) DeepSource Maintainability codecov Coverage Testing

A helper for puppeteer.launch(), for when cached Puppeteer browsers aren't available or aren't compatible.

A drop-in replacement the falls back to system browsers automatically!

Installation

npm install @cityssm/puppeteer-launch

Usage

import puppeteerLaunch from '@cityssm/puppeteer-launch'

// Launch the default cached browser (likely Chrome).
// Will fallback to a system browser (either Chrome, Chromium, or Firefox)
// if no cached browser is available.
const browser = await puppeteerLaunch()

// Launch a Firefox web browser.
// Will use a system Firefox if no Firefox in the Puppeteer cache.
const firefoxBrowser = await puppeteerLaunch({
  browser: 'firefox'
})
2.1.1

12 months ago

3.1.0

11 months ago

3.0.0

11 months ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago