is-fullwidth-code-point
Check if the character represented by a given Unicode code point is fullwidth
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-fullwidth-code-point 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (a year ago)

3 Versions

  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 12,235
This Week 467,425
This Month 803,317
Last Day 83,562
Last Week 519,950
Last Month 2,136,814
Dependencies (0)
None
Dev Dependencies (3)
Dependents (143)

Copyright 2014 - 2017 © taobao.org |