|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
843 bytes
|
| Line | |
|---|
| 1 | # is-fullwidth-code-point [](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 is-fullwidth-code-point
|
|---|
| 10 | ```
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | ## Usage
|
|---|
| 14 |
|
|---|
| 15 | ```js
|
|---|
| 16 | const isFullwidthCodePoint = require('is-fullwidth-code-point');
|
|---|
| 17 |
|
|---|
| 18 | isFullwidthCodePoint('谢'.codePointAt(0));
|
|---|
| 19 | //=> true
|
|---|
| 20 |
|
|---|
| 21 | isFullwidthCodePoint('a'.codePointAt(0));
|
|---|
| 22 | //=> false
|
|---|
| 23 | ```
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | ## API
|
|---|
| 27 |
|
|---|
| 28 | ### isFullwidthCodePoint(codePoint)
|
|---|
| 29 |
|
|---|
| 30 | #### codePoint
|
|---|
| 31 |
|
|---|
| 32 | Type: `number`
|
|---|
| 33 |
|
|---|
| 34 | The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | ## License
|
|---|
| 38 |
|
|---|
| 39 | MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.