| Crates.io | supports-unicode--used-for-pirs |
| lib.rs | supports-unicode--used-for-pirs |
| version | 1.0.3 |
| created_at | 2022-02-15 15:26:19.092126+00 |
| updated_at | 2022-02-15 15:26:19.092126+00 |
| description | Detects whether a terminal supports unicode. |
| homepage | |
| repository | https://github.com/zkat/supports-unicode |
| max_upload_size | |
| id | 532779 |
| size | 17,335 |
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.
use supports_unicode::Stream;
if supports_unicode::on(Stream::Stdout) {
println!("stdout supports unicode output");
} else {
println!("no unicode, please");
}