@sitespeed.io/chromedriver

123.0.6312-58 • Public • Published

Chromedriver

This is a simple package that downloads Chromedriver and provides a node api for accessing the path to the binary. We want to keep this with minimimal dependencies.

How to use?

const driver = require('@sitespeed.io/chromedriver');

const binPath = driver.binPath();
// launch chromedriver from binPath

You can override where you download the Chromedriver by setting process.env.CHROMEDRIVER_BASE_URL. You can skip downloading the Chromedriver by setting process.env.CHROMEDRIVER_SKIP_DOWNLOAD.

You can download another Chromedriver version by setting process.env.CHROMEDRIVER_VERSION.

CHROMEDRIVER_VERSION=81.0.4044.20 node install.js

If you don't set a version, the version in the package.json is used.

Package Sidebar

Install

npm i @sitespeed.io/chromedriver

Weekly Downloads

4,915

Version

123.0.6312-58

License

MIT

Unpacked Size

8.94 kB

Total Files

5

Last publish

Collaborators

  • tobli
  • soulgalore
  • beenanner