Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ultirequiem/is_unicode_supported
🖥️ Detect whether the terminal supports Unicode
https://github.com/ultirequiem/is_unicode_supported
deno nodejs support-unicode typescript unicode
Last synced: 4 months ago
JSON representation
🖥️ Detect whether the terminal supports Unicode
- Host: GitHub
- URL: https://github.com/ultirequiem/is_unicode_supported
- Owner: UltiRequiem
- License: mit
- Created: 2021-10-14T20:08:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T00:18:37.000Z (10 months ago)
- Last Synced: 2024-10-24T05:30:19.535Z (4 months ago)
- Topics: deno, nodejs, support-unicode, typescript, unicode
- Language: TypeScript
- Homepage: https://ulti.js.org/is_unicode_supported
- Size: 23.4 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is_unicode_supported
[![Code Coverage](https://codecov.io/gh/ultirequiem/is_unicode_supported/branch/main/graph/badge.svg)](https://codecov.io/gh/ultirequiem/is_unicode_supported)
[![Deno Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/is_unicode_supported/mod.ts)Detect whether the terminal supports Unicode, port of
[is-unicode-supported](https://github.com/sindresorhus/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 🦕](https://deno.land/x/is_unicode_supported)
```javascript
import { isUnicodeSupported } from "https://deno.land/x/is_unicode_supported/mod.ts";isUnicodeSupported(); //=> true
```### [Node.js 🐢🚀](https://npmjs.com/package/@ultirequiem/is-unicode-supported)
```javascript
import { isUnicodeSupported } from "@ultirequiem/is-unicode-supported";
```## Documentation
Is hosted on
[Deno Doc](https://doc.deno.land/https://deno.land/x/is_unicode_supported/mod.ts)
📄## 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](https://twitter.com/UltiRequiem) 😆Consider [supporting me on Patreon](https://patreon.com/UltiRequiem) if you like
my work 🙏Don't forget to start the repo ⭐
## Versioning
We use [Semantic Versioning](http://semver.org). For the versions available, see
the [tags](https://github.com/UltiRequiem/is_unicode_supported/tags) 🏷️## Authors
[Eliaz Bobadilla](https://ultirequiem.com) - Creator and Maintainer 💪
See also the full list of
[contributors](https://github.com/UltiRequiem/is_unicode_supported/contributors)
who participated in this project ✨## Licence
Licensed under the MIT License 📄