node/tools/eslint/node_modules/is-fullwidth-code-point
cjihrig ba73a67d45 tools: update to ESLint 4.10.0
PR-URL: https://github.com/nodejs/node/pull/16738
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
2017-12-13 16:59:02 +00:00
..
index.js tools: update ESLint to v4.0.0 2017-06-21 22:43:32 +02:00
license tools: update eslint to v1.10.3 2016-01-13 23:15:39 +01:00
package.json tools: update to ESLint 4.10.0 2017-12-13 16:59:02 +00:00
readme.md tools: update ESLint to v4.0.0 2017-06-21 22:43:32 +02:00

is-fullwidth-code-point Build Status

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

Install

$ npm install --save is-fullwidth-code-point

Usage

const isFullwidthCodePoint = require('is-fullwidth-code-point');

isFullwidthCodePoint('谢'.codePointAt());
//=> true

isFullwidthCodePoint('a'.codePointAt());
//=> false

API

isFullwidthCodePoint(input)

input

Type: number

Code point of a character.

License

MIT © Sindre Sorhus