$ supports-hyperlinks

v3.2.0MAJOR UPDATE

Detects whether a terminal supports rendering hyperlinks.

Downloads: 19.0M
Recent: 2.8M
Versions: 8
Updated: December 17, 2025

Latest Update Summary

Crate

Name: supports-hyperlinks New version: 3.2.0 Release date: 2025-12-17T03:39:03.709710Z

Crate readme

Short description Detects whether the current terminal supports hyperlinks in terminal emulators.

Long description This crate detects and supports all known terminals and terminal families that support hyperlinks. It provides a simple API to check if the terminal on stdout supports hyperlinks. Additionally, users can force hyperlink detection using an environment variable. The minimum supported Rust version is 1.70.0.

Features • hyperlink detection • supports multiple terminal families • FORCE_HYPERLINK environment variable

Code Examples Basic usage

 use supports_hyperlinks::Stream;

if supports_hyperlinks::on(Stream::Stdout) {
    println!("This terminal supports hyperlinks on stdout");
} else {
    println!("No hyperlinks, please");
}

Linkshttps://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

https://docs.rs/supports-hyperlinks https://api.github.com/repos/zkat/supports-hyperlinks/releases/49384142

Release info

Release version:

Release description

Code Examples

Minor update: 3.1.0 → 3.2.0

$ DOWNLOADS TREND

16.8M19.0M

$ VERSION HISTORY

v3.2.0December 17, 2025
v3.1.0November 26, 2024

$ LINKS

$ INSTALL

cargo add supports-hyperlinks

Or add to Cargo.toml: supports-hyperlinks = "3.2.0"