is-fullwidth-code-point

  • Version 4.0.0
  • Published
  • 5.19 kB
  • No dependencies
  • MIT license

Install

npm i is-fullwidth-code-point
yarn add is-fullwidth-code-point
pnpm add is-fullwidth-code-point

Overview

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

Index

Functions

function isFullwidthCodePoint

isFullwidthCodePoint: (codePoint: number) => boolean;
  • Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).

    Parameter codePoint

    The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.

    Example 1

    import isFullwidthCodePoint from 'is-fullwidth-code-point';
    isFullwidthCodePoint('谢'.codePointAt(0));
    //=> true
    isFullwidthCodePoint('a'.codePointAt(0));
    //=> false

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (3)

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/is-fullwidth-code-point.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/is-fullwidth-code-point)
  • HTML
    <a href="https://www.jsdocs.io/package/is-fullwidth-code-point"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>