Skip to content

Install and launch Chromedriver for Mac, Linux or Windows.

License

Notifications You must be signed in to change notification settings

sitespeedio/chromedriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bef3e93 · Apr 4, 2025
Jul 19, 2023
Dec 9, 2018
Aug 4, 2017
Nov 6, 2023
Feb 16, 2020
Dec 9, 2018
Jul 14, 2022
Feb 26, 2024
Apr 4, 2025
Apr 4, 2025
Dec 10, 2018
Dec 9, 2018

Repository files navigation

Chromedriver

This is a simple package that downloads Chromedriver and provides a node api for accessing the path to the binary. We want to keep this with minimimal dependencies.

How to use?

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 in the package.json is used.