Provides functions to determine the East Asian Width category and numeric width (1 or 2) for a Unicode character code point. Useful for text layout and alignment in East Asian typography, with an option to treat “ambiguous” characters as wide.
Project status
- Actively maintained, with the latest upstream push on 2026-05-08 and tagged updates in 2026 (v1.6.0 on 2026-05-08, v1.5.0 on 2026-02-18).
- Update cadence appears to be a few months, for example roughly 2.5 months between v1.5.0 and v1.6.0, and several months between earlier updates (e.g., 2025-09 to 2026-02).
AI summary generated
Recent updates
v1.6.0
v1.6.0 is intended to improve tree-shaking. The change set focuses on the generated lookup data module and how `lookup.js` imports it, adding explicit min and max code point exports per width category and switching lookup logic to use those constants.
v1.5.0
v1.5.0 is primarily a performance-oriented release. The release notes only mention performance improvements, but the code diff shows a larger internal refactor around how Unicode East Asian Width ranges are represented and queried.
v1.4.0
v1.4.0 updates the East Asian Width data used by get-east-asian-width to Unicode 17.0. The implementation changes primarily reflect regenerated wide-character ranges, so the reported width may differ for some code points compared to v1.3.1.
Breakingv1.3.1
Release v1.3.1 contains a small internal refactor. The only substantive code change is in index.js, where helper exports were modified.
Breakingv1.3.0
v1.3.0 updates the Unicode East Asian Width data to Unicode 16.0 and regenerates the lookup logic accordingly. The release notes only mention the Unicode data update, but the diff also shows additional packaging and repository maintenance changes.
Breakingv1.2.0
Release v1.2.0 focuses on improving tree shaking by restructuring how Unicode East Asian width categories are determined. The implementation splits the previous monolithic lookup into independent predicate functions and updates the public width APIs to use these predicates.
v1.1.0
v1.1.0 primarily reduces package size by changing how the generated East Asian Width lookup table is produced and consumed. The release notes only call out the size reduction, with no mention of any behavioral contract changes in internal modules.
v1.0.0
Release v1.0.0 was published on 2023-10-28, but the provided release notes contain no descriptive changelog content (only an emoji). As a result, there is not enough information to identify new features, fixes, breaking changes, or required migrations from the release notes alone.