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
updatesafter earlier versions (last upstream push 2024-09-09, and a taggedv2.1.0on 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
Recent updates
v2.1.0
9/9/2024v2.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
10/29/2023v2.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
9/8/2022v1.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
3/23/2022v1.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
7/3/2021v1.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
4/18/2021v1.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
3/17/2021Release 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.