@vlasky/chrome-finder
v1.0.9
Published
Search for any installed Google Chrome/Chromium executables and return the path to the first one. Fork of chrome-finder by gwuhaolin.
Downloads
10
Readme
chrome-finder
Search for any installed Google Chrome/Chromium executables and return the path to the first one. Fork of chrome-finder by gwuhaolin.
Installation
- Add the package to your project:
$ npm install @vlasky/chrome-finder
Usage
const findChrome = require('@vlasky/chrome-finder');
const chromePath = findChrome();
- if the
chrome
executable is not found, an errorError('no chrome installations found')
will be thrown - if the
chrome
executable is found, but the platform is not one of['win32', 'darwin', 'linux']
, an errorError('platform not support')
will be thrown.
Use Case
chrome-finder has been used in:
- chrome-runner Run Chrome with ease from node.