Back to Explore

sindresorhus/is-fullwidth-code-point

GitHub
1 watchersOpen source

Last release: 9 months ago

This package provides a function to check whether a given Unicode code point represents a fullwidth character. It is useful for text formatting, alignment, or validation when you need to distinguish fullwidth from non-fullwidth characters.

Project status

  • Actively maintained, with a recent update on 2025-08-31 (v5.1.0), after prior work in 2023 (v5.0.0) and 2021 (v4.0.0).
  • Update cadence appears relatively slow but consistent, roughly every 1.5 to 2 years for major changes, plus at least one follow-up minor update (v5.1.0) soon after v5.0.0.

AI summary generated Today

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

Recent updates

  • v5.1.0

    9 months ago

    v5.1.0 is described as a tree-shaking improvement. The code changes also modify the underlying width-detection logic by switching from a single helper call to two different helpers from get-east-asian-width, and it bumps the dependency version.

  • v5.0.0

    10/28/2023

    v5.0.0 raises the minimum supported Node.js version to 18 and updates fullwidth detection to use more recent Unicode width data (via get-east-asian-width). The core implementation is no longer based on hardcoded East Asian width code point ranges.

    Breaking
  • v4.0.0

    4/16/2021

    v4.0.0 marks a major release that shifts the package to a pure ESM-only distribution and raises the supported Node.js engine requirement. The core fullwidth code point logic remains largely the same, but there are subtle input validation and packaging behavior changes in the code and package metadata.

    Breaking
  • v3.0.0

    3/18/2019

    This release bumps the minimum required Node.js version and adds TypeScript type definitions. No other functional changes are described in the provided release notes.

    BreakingFeatures