Socket
Socket
Sign inDemoInstall

chromedriver

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromedriver - npm Package Compare versions

Comparing version 2.14.0 to 2.14.1

5

install.js

@@ -17,3 +17,6 @@ 'use strict'

var libPath = path.join(__dirname, 'lib', 'chromedriver')
var downloadUrl = (process.env.CHROMEDRIVER_CDNURL || 'http://chromedriver.storage.googleapis.com') + '/%s/chromedriver_%s.zip'
var cdnUrl = process.env.npm_config_chromedriver_cdnurl || process.env.CHROMEDRIVER_CDNURL || 'http://chromedriver.storage.googleapis.com'
// adapt http://chromedriver.storage.googleapis.com/
cdnUrl = cdnUrl.replace(/\/+$/, '')
var downloadUrl = cdnUrl + '/%s/chromedriver_%s.zip'
var platform = process.platform

@@ -20,0 +23,0 @@

2

package.json
{
"name": "chromedriver",
"version": "2.14.0",
"version": "2.14.1",
"keywords": ["chromedriver", "selenium"],

@@ -5,0 +5,0 @@ "description": "ChromeDriver for Selenium",

@@ -27,2 +27,23 @@ ChromeDriver

### Custom binaries url
To use a mirror of the ChromeDriver binaries use npm config property `chromedriver_cdnurl`.
Default is `http://chromedriver.storage.googleapis.com`.
```shell
npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
```
Or add property into your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file.
```
chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
```
Another option is to use PATH variable `CHROMEDRIVER_CDNURL`.
```shell
CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver npm install chromedriver
```
Running

@@ -29,0 +50,0 @@ -------

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc