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 build: do CFA releases (#118) 2023-02-20 10:20:33 +01: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
LICENSE chore: add LICENSE file to match package.json (#112) 2023-01-18 11:44:06 +01:00
README.md build: test all platforms on CircleCI (#116) 2023-02-09 18:17:24 -08: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 semver from 7.3.8 to 7.5.2 (#122) 2023-07-11 12:14:48 +02:00
package.json build: switch from .npmignore to files field in package.json (#125) 2023-08-09 10:44:18 -04:00

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.