is-fullwidth-code-point

5.0.0last stable release 1 year ago
Complexity Score
Low
Open Issues
4
Dependent Projects
1,255
Weekly Downloadsglobal
121,549,609

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

is-fullwidth-code-point

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

Install

npm install is-fullwidth-code-point

Usage

import isFullwidthCodePoint from '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.

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
4.30
Test Coverage
No Data
Follows Semver
Yes
Github Stars
49
Dependenciestotal
4
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute is-fullwidth-code-point in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install is-fullwidth-code-point
Processing...
Done

5 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.