Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nxmix/is-full-width

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nxmix/is-full-width

> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@nxmix/is-full-width Build Status

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

Why another is-fullwidth-code-point?

Compare to is-fullwidth-codepoint, I'm trying to give a fully accurate implementation of official Unicode EastAsianWidth specification v11.0.

The code in src/index.ts is generated by an internal tool that reflects the contents of the specification range by range.

Install

$ npm install @nxmix/is-full-width

Typescript definition file is already included.

Usage

const isFullwidth = require('is-full-width');

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

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

API

isFullwidth(input)

input

Type: number

Code point of a character.

License

MIT

Keywords

FAQs

Package last updated on 01 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc