supports-unicode--used-for-pirs

Crates.iosupports-unicode--used-for-pirs
lib.rssupports-unicode--used-for-pirs
version1.0.3
sourcesrc
created_at2022-02-15 15:26:19.092126
updated_at2022-02-15 15:26:19.092126
descriptionDetects whether a terminal supports unicode.
homepage
repositoryhttps://github.com/zkat/supports-unicode
max_upload_size
id532779
size17,335
Jay Jackson (TheBotlyNoob)

documentation

https://docs.rs/supports-unicode

README

Detects whether a terminal supports unicode.

This crate is a Rust port mashing together @sindresorhus' is-unicode-supported and @iarna's has-unicode NPM packages.

Example

use supports_unicode::Stream;

if supports_unicode::on(Stream::Stdout) {
    println!("stdout supports unicode output");
} else {
    println!("no unicode, please");
}
Commit count: 16

cargo fmt