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.
- Host: GitHub
- URL: https://github.com/sitespeedio/chromedriver
- Owner: sitespeedio
- License: mit
- Created: 2017-08-04T12:00:25.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T08:13:58.000Z (about 1 year ago)
- Last Synced: 2025-05-07T02:22:39.766Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.