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 6,507
This Week 94,073
This Month 1,601,920
Last Day 87,566
Last Week 490,843
Last Month 2,105,683
Dependencies (0)
None
Dev Dependencies (3)
Dependents (134)

Copyright 2014 - 2016 © taobao.org |