• Home
Name
Date
Size
#Lines
LOC

..--

index.jsD12-May-20241.4 KiB4727

licenseD12-May-20241.1 KiB2217

package.jsonD12-May-20241.9 KiB7978

readme.mdD12-May-2024833 4021

readme.md

1# is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/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
6## Install
7
8```
9$ npm install --save is-fullwidth-code-point
10```
11
12
13## Usage
14
15```js
16var isFullwidthCodePoint = require('is-fullwidth-code-point');
17
18isFullwidthCodePoint('谢'.codePointAt());
19//=> true
20
21isFullwidthCodePoint('a'.codePointAt());
22//=> false
23```
24
25
26## API
27
28### isFullwidthCodePoint(input)
29
30#### input
31
32Type: `number`
33
34[Code point](https://en.wikipedia.org/wiki/Code_point) of a character.
35
36
37## License
38
39MIT © [Sindre Sorhus](http://sindresorhus.com)
40