Expand description
§browser-info
Cross-platform library for retrieving active browser URL and detailed information.
Built on top of active-win-pos-rs
for reliable window detection, with specialized
browser information extraction capabilities.
§Quick Start
use browser_info::get_active_browser_info;
match get_active_browser_info() {
Ok(info) => {
println!("Current URL: {}", info.url);
println!("Browser: {}", info.browser_name);
println!("Title: {}", info.title);
}
Err(e) => eprintln!("Error: {}", e),
}
Re-exports§
pub use error::BrowserInfoError;
pub use platform::chrome_devtools::ChromeDevToolsExtractor;
Modules§
Structs§
- Browser
Info - [derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
- Window
Position - Window position and dimensions
Enums§
- Browser
Type - Browser type classification
- Extraction
Method
Functions§
- get_
active_ browser_ info - Retrieve information about the currently active browser
- get_
active_ browser_ url - Get only the URL from the active browser (lightweight version)
- get_
browser_ info - デフォルト(自動判定・推奨)- PowerShell優先
- get_
browser_ info_ detailed - 詳細情報重視(Chrome DevTools - デバッグモード必要)
- get_
browser_ info_ fast - 後方互換性のためのエイリアス
- get_
browser_ info_ safe - 高速・互換性重視(PowerShell方式)
- get_
browser_ info_ with_ method - 明示的な方法指定
- is_
browser_ active - Check if the currently active window is a browser