Detect whether the terminal supports Unicode, port of is-unicode-supported.
This can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output.
Note that the check is quite naive. It just assumes all non-Windows terminals support Unicode and hard-codes which Windows terminals that do support Unicode.
The API is the same on all this platforms βοΈ
import { isUnicodeSupported } from "https://deno.land/x/is_unicode_supported/mod.ts";
isUnicodeSupported(); //=> true
import { isUnicodeSupported } from "@ultirequiem/is-unicode-supported";
Is hosted on Deno Doc π
Open an Issue, I will check it a soon as possible π
If you want to hurry me up a bit send me a tweet π
Consider supporting me on Patreon if you like my work π
Don't forget to start the repo β
We use Semantic Versioning. For the versions available, see the tags π·οΈ
Eliaz Bobadilla - Creator and Maintainer πͺ
See also the full list of contributors who participated in this project β¨
Licensed under the MIT License π