Back to Explore

sindresorhus/is-unicode-supported

GitHub
1 watchersOpen source

Last release: 9/9/2024

Detects whether the current terminal supports Unicode and returns a boolean. Useful for deciding whether to print Unicode characters or fall back to ASCII in command line output (the check is described as naive, with assumptions for non-Windows terminals and hard-coded Windows support).

Project status

  • Active maintenance is evident, with new updates after earlier versions (last upstream push 2024-09-09, and a tagged v2.1.0 on 2024-09-09).
  • Apparent update cadence is relatively low and irregular, with changes at about 10 to 11 months apart (v1.3.0 in 2022-09, v2.0.0 in 2023-10, v2.1.0 in 2024-09).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.1.0

    9/9/2024

    v2.1.0 adds terminal detection for rxvt on Cygwin. The runtime API remains the same (still exports a single default function), and the main logic change is extending the Windows branch’s TERM checks to include rxvt-unicode variants. Additional repository-only changes include updated dev tooling versions and a package metadata flag.

    Features
  • v2.0.0

    10/29/2023

    v2.0.0 raises the supported Node.js version to Node 18. It also changes how Unicode support is detected in Windows CI environments by removing the generic CI environment variable shortcut.

    Breaking
  • v1.3.0

    9/8/2022

    v1.3.0 extends terminal capability detection to recognize the Terminus terminal. The change is implemented by adding extra environment variable checks in the main `isUnicodeSupported()` function, along with corresponding test coverage and some repository metadata files.

    Features
  • v1.2.0

    3/23/2022

    v1.2.0 adds detection for JetBrains terminal (JetBrains-JediTerm) so the library can recognize when Unicode is supported. The code change also modernizes how `process` is referenced and updates the project toolchain and CI matrix.

    BreakingFeatures
  • v1.1.0

    7/3/2021

    v1.1.0 adds additional terminal detection for ConEmu and cmder, and adjusts the Unicode support detection for the Linux kernel console. The core changes are in the main `isUnicodeSupported()` implementation, plus minor test environment cleanup.

    Features
  • v1.0.0

    4/18/2021

    v1.0.0 makes the package a pure ESM module and raises the minimum supported Node.js version to 12. The codebase shifts from CommonJS `module.exports` to an ESM `export default` function.

    Breaking
  • v0.1.0

    3/17/2021

    Release v0.1.0 was published on 2021-03-17, but the provided release notes contain no substantive information about changes. As a result, this release cannot be assessed for new features, breaking changes, bug fixes, security updates, performance improvements, or migration requirements based on the notes alone.