# @so1ve/is-unicode-supported

> > Detect whether the terminal supports Unicode

Latest version **1.2.0** (published 2022-08-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @so1ve/is-unicode-supported
pnpm add @so1ve/is-unicode-supported
yarn add @so1ve/is-unicode-supported
bun add @so1ve/is-unicode-supported
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-08-18 |
| First published | 2022-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ray |
| Maintainers | so1ve |

## Links

- npm: https://www.npmjs.com/package/@so1ve/is-unicode-supported
- Repository: https://github.com/so1ve/is-unicode-supported
- Homepage: https://github.com/so1ve/is-unicode-supported#readme
- Issues: https://github.com/so1ve/is-unicode-supported/issues
- npm.io page: https://npm.io/package/@so1ve/is-unicode-supported

## Recent versions

- 1.2.0 (latest) — 2022-08-18

## README

# @so1ve/is-unicode-supported

> Detect whether the terminal supports Unicode

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. However, I have been using this logic in some popular packages for years without problems.

## Install

```sh
npm install is-unicode-supported
```

## Usage

```js
import isUnicodeSupported from "@so1ve/is-unicode-supported";

isUnicodeSupported();
// => true
```

## API

### isUnicodeSupported()

Returns a `boolean` for whether the terminal supports Unicode.

## Related

- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive
- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks
- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels

---
_Source: https://npm.io/package/@so1ve/is-unicode-supported · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
