Download ChromeDriver for Electron
Перейти к файлу
David Sanders dda0d8997c
ci: bump electronjs/node orb version to fix cache issue (#128)
* ci: bump electronjs/node orb version to fix cache issue

* ci: bump orb version

* ci: revert cache key bump
2023-08-24 13:50:35 -07:00
.circleci ci: bump electronjs/node orb version to fix cache issue (#128) 2023-08-24 13:50:35 -07:00
.github ci: don't use pull_request_target with semantic PR title check (#127) 2023-08-10 10:38:34 +02:00
script
test
.gitignore
LICENSE
README.md
chromedriver.js
download-chromedriver.js
package-lock.json
package.json

README.md

Electron ChromeDriver

CircleCI Status npm:
js-standard-style license:mit
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.