Backend/node_modules/is-fullwidth-code-point
2021-12-31 15:03:23 +05:30
..
index.d.ts 20211231 commit 2021-12-31 15:03:23 +05:30
index.js 20211231 commit 2021-12-31 15:03:23 +05:30
license 20211231 commit 2021-12-31 15:03:23 +05:30
package.json 20211231 commit 2021-12-31 15:03:23 +05:30
readme.md 20211231 commit 2021-12-31 15:03:23 +05:30

is-fullwidth-code-point Build Status

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

Install

$ npm install is-fullwidth-code-point

Usage

const isFullwidthCodePoint = require('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.

License

MIT © Sindre Sorhus