UNPKG

616 BMarkdownView Raw
1# is-fullwidth-code-point
2
3> 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)
4
5## Install
6
7```sh
8npm install is-fullwidth-code-point
9```
10
11## Usage
12
13```js
14import isFullwidthCodePoint from 'is-fullwidth-code-point';
15
16isFullwidthCodePoint('谢'.codePointAt(0));
17//=> true
18
19isFullwidthCodePoint('a'.codePointAt(0));
20//=> false
21```
22
23## API
24
25### isFullwidthCodePoint(codePoint)
26
27#### codePoint
28
29Type: `number`
30
31The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.