@ultirequiem/is-unicode-supported
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

is_unicode_supported

Code Coverage Deno Doc

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.

Usage

The API is the same on all this platforms ✔️

Deno 🦕

import { isUnicodeSupported } from "https://deno.land/x/is_unicode_supported/mod.ts";

isUnicodeSupported(); //=> true

Node.js 🐢🚀

import { isUnicodeSupported } from "@ultirequiem/is-unicode-supported";

Documentation

Is hosted on Deno Doc 📄

Support

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

Versioning

We use Semantic Versioning. For the versions available, see the tags 🏷️

Authors

Eliaz Bobadilla - Creator and Maintainer 💪

See also the full list of contributors who participated in this project

Licence

Licensed under the MIT License 📄

Readme

Keywords

Package Sidebar

Install

npm i @ultirequiem/is-unicode-supported

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

11.1 kB

Total Files

11

Last publish

Collaborators

  • ultirequiem