is-fullwidth-code-point

Check if the character represented by a given Unicode code point is fullwidth

MIT 6 个版本
安装
npm install is-fullwidth-code-point
yarn add is-fullwidth-code-point
pnpm add is-fullwidth-code-point
bun add is-fullwidth-code-point
README

is-fullwidth-code-point

Check if the character represented by a given Unicode code point is fullwidth

Install

npm install is-fullwidth-code-point

Usage

import isFullwidthCodePoint from 'is-fullwidth-code-point';

isFullwidthCodePoint('谢'.codePointAt(0));
//=> true

isFullwidthCodePoint('a'.codePointAt(0));
//=> false

API

isFullwidthCodePoint(codePoint)

codePoint

Type: number

The code point of a character.

版本列表
5.1.0 2025-08-31
5.0.0 2023-10-28
4.0.0 2021-04-16
3.0.0 2019-03-18
2.0.0 2016-09-22
1.0.0 2015-07-16