# Browsers
[![Crates.io][crates-badge]][crates-url]
[![docs.rs][docs.rs-badge]][docs.rs-url]
[![MIT licensed][mit-badge]][mit-url]
[crates-badge]: https://img.shields.io/crates/v/browsers.svg
[crates-url]: https://crates.io/crates/browsers
[docs.rs-badge]: https://img.shields.io/docsrs/browsers.svg
[docs.rs-url]: https://docs.rs/browsers
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[mit-url]: LICENSE.md
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:
```rust
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");
```