Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 21, 2024 via pnpm

is-fullwidth-code-point 1.0.0

Check if the character represented by a given Unicode code point is fullwidth
Package summary
Share
0
issues
1
license
2
MIT
Package created
16 Jul 2015
Version published
16 Jul 2015
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
is-fullwidth-code-point@1.0.0
number-is-nan@1.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
ⓘ This is a list of is-fullwidth-code-point 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
number-is-nan1.0.11.43 kBMIT
prod

Visualizations

Frequently Asked Questions

What does is-fullwidth-code-point do?

The package "is-fullwidth-code-point" performs a simple yet critical function: it checks if the character represented by a given Unicode code point is fullwidth. This is particularly useful in manipulating and presenting text that needs to adhere to specific space formatting requirements, primarily in languages utilizing fullwidth characters like Chinese, Japanese, and Korean.

How do you use is-fullwidth-code-point?

To use "is-fullwidth-code-point", you'll first need to install it via npm. The command for this would be npm install is-fullwidth-code-point. Once installed, you import it into your JavaScript file with import isFullwidthCodePoint from 'is-fullwidth-code-point';.

For utilizing the function and checking if a character is fullwidth, begin by selecting a character and getting its Unicode code point using the .codePointAt(0) method. Then, use isFullwidthCodePoint() and pass the code point into it. For example:

import isFullwidthCodePoint from 'is-fullwidth-code-point';

isFullwidthCodePoint('谢'.codePointAt(0));
// Returns true, as '谢' is a fullwidth character

It can also be used on non-fullwidth code points:

isFullwidthCodePoint('a'.codePointAt(0));
// Returns false as 'a' is not a fullwidth character

Where are the is-fullwidth-code-point docs?

For additional information on the "is-fullwidth-code-point" package, your best resource would be the documentation provided in the README file on the GitHub repository. This contains all the instructions and details necessary for successful usage of the package. To access this, head over to the package's GitHub page by following this link.