0.2.0 • Published 8 years ago

ci-browser-downloader v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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;
}