browsers

Crates.iobrowsers
lib.rsbrowsers
version0.1.2
sourcesrc
created_at2023-05-02 10:37:45.313243
updated_at2023-07-15 19:20:46.658535
descriptionThis crate is a quick and easy way to find what browsers are installed on an operating system (supports MacOS, Windows and Linux).
homepage
repositoryhttps://github.com/jad3n/browsers
max_upload_size
id854392
size5,681
Jaden (JAD3N)

documentation

https://docs.rs/browsers

README

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");
Commit count: 13

cargo fmt