#browser #find #operating-system #installed #quick #linux #macos

browsers

This crate is a quick and easy way to find what browsers are installed on an operating system (supports MacOS, Windows and Linux)

3 releases

0.1.2 Jul 15, 2023
0.1.1 Jul 15, 2023
0.1.0 May 2, 2023

#401 in Operating systems

33 downloads per month

Custom license

5KB
67 lines

Browsers

Crates.io docs.rs MIT licensed

This crate is a quick and easy way to find what browsers are installed on an operating system (supports MacOS, Windows and Linux).

Usage

You can use the crate easily by one of two methods:

use browsers::{Browser, BrowserKind, get_browser_path, get_browsers};

// find all browser installations on the system
let browsers: Vec<Browser> = get_browsers();

// find a specific browser installation path
let path: PathBuf = get_browser_path(BrowserKind::Chrome)
    .expect("failed to find browser installation");

Dependencies

~2–12MB
~130K SLoC