Download ChromeDriver for Electron
Перейти к файлу
David Sanders 5a31dc3689
ci: publish npm package with provenance statement (#151)
2024-09-09 16:43:10 -04:00
.github ci: use GHA for CFA releases (#149) 2024-09-04 10:36:12 -07:00
script ci: publish npm package with provenance statement (#151) 2024-09-09 16:43:10 -04:00
test test: modernize smoke test (#141) 2024-04-16 15:53:57 -06:00
.gitignore chore: bump to 14.0.0 2021-09-01 10:19:05 -07:00
LICENSE chore: add LICENSE file to match package.json (#112) 2023-01-18 11:44:06 +01:00
README.md ci: use GHA for CFA releases (#149) 2024-09-04 10:36:12 -07:00
chromedriver.js Don't throw error when code is null 2021-02-08 15:40:23 -05:00
download-chromedriver.js chore: use @electron/fiddle-core to get latest stable version (#119) 2023-05-02 11:03:06 +02:00
package-lock.json chore(deps-dev): Bump axios from 1.6.2 to 1.7.7 (#150) 2024-09-04 12:48:38 -07:00
package.json ci: use GHA for CFA releases (#149) 2024-09-04 10:36:12 -07:00

README.md

Electron ChromeDriver

Test 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.