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
- The repository appears not to be actively maintained as of today (2026-06-09), with the last upstream push on 2024-09-09, and the most recent recorded updates dated 2024-09-09 (v2.1.0).
- Update cadence is low, about one update in roughly a year from 2023-10-29 (v2.0.0) to 2024-09-09 (v2.1.0), and a longer gap before earlier changes (for example, 2022-09-08 and 2022-03-23).
AI summary generated
Recent updates
v2.1.0
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.
Featuresv2.0.0
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.
Breakingv1.3.0
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.
Featuresv1.2.0
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.
BreakingFeaturesv1.1.0
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.
Featuresv1.0.0
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.
Breakingv0.1.0
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.