ci-browser-downloader
v0.2.0
Published
A simple tool which tries to download firefox and install puppeteer (which downloads Chromium) on installation.
Downloads
4
Maintainers
Readme
ci-browser-downloader
This package downloads Firefox and Chrome (via puppeteer) on install. It does not throw an error if it fails. This package is intended to be used in Continuous Integration environments, where neither browser has been installed.
Installation
npm install ci-browser-downloader
Usage
const ci = require('ci-browser-downloader');
const chrome = ci.chrome();
if (chrome.available) {
... = chrome.binary;
}
const firefox = ci.firefox();
if (firefox.available) {
... = firefox.binary;
}