urltomarkdown/node_modules/is-fullwidth-code-point
Lee Hanken ca3866eae3 added unit tests 2022-12-23 12:03:25 +00:00
..
index.d.ts added unit tests 2022-12-23 12:03:25 +00:00
index.js added unit tests 2022-12-23 12:03:25 +00:00
license added unit tests 2022-12-23 12:03:25 +00:00
package.json added unit tests 2022-12-23 12:03:25 +00:00
readme.md added unit tests 2022-12-23 12:03:25 +00:00

readme.md

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