@vlasky/chrome-finder
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Npm Package Dependency Status Npm Downloads

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 error Error('no chrome installations found') will be thrown
  • if the chrome executable is found, but the platform is not one of ['win32', 'darwin', 'linux'], an error Error('platform not support') will be thrown.

Use Case

chrome-finder has been used in:

Readme

Keywords

Package Sidebar

Install

npm i @vlasky/chrome-finder

Weekly Downloads

1

Version

1.0.9

License

ISC

Unpacked Size

10.3 kB

Total Files

8

Last publish

Collaborators

  • vlasky