Download ChromeDriver for Electron
Перейти к файлу
electron-bot a23c98387e chore: update version to v21.0.0 2022-09-27 08:01:14 +00:00
.circleci build: update Xcode image on CircleCI (#100) 2022-08-03 14:30:09 -04:00
.github chore: fix release workflow 2022-09-26 10:11:27 +02:00
script chore: add release update action (#98) 2022-05-25 00:34:19 +02:00
test chore: update standard and mocha 2019-07-29 19:35:47 -07:00
.gitignore chore: bump to 14.0.0 2021-09-01 10:19:05 -07:00
.npmignore Add initial appveyor config 2015-10-27 14:00:46 -06:00
README.md chore: update hardcoded master to main (#84) 2021-08-13 14:00:29 -07:00
appveyor.yml chore: update hardcoded master to main (#84) 2021-08-13 14:00:29 -07:00
chromedriver.js Don't throw error when code is null 2021-02-08 15:40:23 -05:00
download-chromedriver.js fix: use same settings for force and cacheRoot as electron (#74) 2020-12-28 10:35:43 -08:00
package-lock.json chore: update version to v21.0.0 2022-09-27 08:01:14 +00:00
package.json chore: update version to v21.0.0 2022-09-27 08:01:14 +00:00

README.md

Electron ChromeDriver

Linux and Mac Build Status Windows Build status
js-standard-style devDependencies:?
license:mit npm: dependencies:?

Simple node module to download the ChromeDriver version for Electron.

The major version of this library tracks the major version of the Electron versions released. So if you are using Electron 2.0.x you would want to use an electron-chromedriver dependency of ~2.0.0 in your package.json file.

This library is used by spectron.

Using

npm install --save-dev electron-chromedriver
chromedriver -h

Custom Mirror

You can set the ELECTRON_MIRROR or NPM_CONFIG_ELECTRON_MIRROR environment variables to use a custom base URL for downloading ChromeDriver zips.

# Electron mirror for China
ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"

# Local mirror
# Example of requested URL: http://localhost:8080/1.2.0/chromedriver-v2.21-darwin-x64.zip
ELECTRON_MIRROR="http://localhost:8080/"

Overriding the version downloaded

The version downloaded can be overriden by setting the ELECTRON_CUSTOM_VERSION environment variable.