Socket
Socket
Sign inDemoInstall

@vlasky/chrome-finder

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @vlasky/chrome-finder

Search for any installed Google Chrome/Chromium executables and return the path to the first one. Fork of chrome-finder by gwuhaolin.


Version published
Maintainers
1
Install size
10.1 kB
Created

Readme

Source

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:

Keywords

FAQs

Last updated on 04 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc