Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

is-fullwidth-code-point

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

is-fullwidth-code-point

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

    4.0.0latest

Version published
Maintainers
1
Yearly downloads
3,477,355,566
increased by49.08%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 12 2f913bc
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/is-fullwidth-code-point/compare/v3.0.0...v4.0.0

Readme

Source

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.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc