An open API service indexing awesome lists of open source software.

https://github.com/sitespeedio/chromedriver

Install and launch Chromedriver for Mac, Linux or Windows.
https://github.com/sitespeedio/chromedriver

Last synced: 12 months ago
JSON representation

Install and launch Chromedriver for Mac, Linux or Windows.

Awesome Lists containing this project

README

          

# Chromedriver

This is a simple package that downloads [Chromedriver](https://sites.google.com/a/chromium.org/chromedriver/) and provides a node api for accessing the path to the binary. We want to keep this with minimimal dependencies.

How to use?
```node
const driver = require('@sitespeed.io/chromedriver');

const binPath = driver.binPath();
// launch chromedriver from binPath
```

You can override where you download the Chromedriver by setting *process.env.CHROMEDRIVER_BASE_URL*. You can skip downloading the Chromedriver by setting *process.env.CHROMEDRIVER_SKIP_DOWNLOAD*.

You can download another Chromedriver version by setting *process.env.CHROMEDRIVER_VERSION*.

```
CHROMEDRIVER_VERSION=81.0.4044.20 node install.js
```

If you don't set a version, [the version](https://github.com/sitespeedio/chromedriver/blob/master/package.json#L4) in the *package.json* is used.