unicode-properties

WebJar for unicode-properties

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

unicode-properties
Last Version

Last Version

1.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

unicode-properties
WebJar for unicode-properties
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/foliojs/unicode-properties

Download unicode-properties

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/unicode-properties/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>unicode-properties</artifactId>
    <version>1.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/unicode-properties/
implementation 'org.webjars.npm:unicode-properties:1.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/unicode-properties/
implementation ("org.webjars.npm:unicode-properties:1.3.1")
'org.webjars.npm:unicode-properties:jar:1.3.1'
<dependency org="org.webjars.npm" name="unicode-properties" rev="1.3.1">
  <artifact name="unicode-properties" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='unicode-properties', version='1.3.1')
)
libraryDependencies += "org.webjars.npm" % "unicode-properties" % "1.3.1"
[org.webjars.npm/unicode-properties "1.3.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : base64-js jar [1.3.0,2)
org.webjars.npm : unicode-trie jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

unicode-properties

Provides fast access to unicode character properties. Uses unicode-trie to compress the properties for all code points into just 9.5KB. Currently, unicode-properties supports Unicode version 12.

Usage

npm install unicode-properties
var unicode = require('unicode-properties');

unicode.getCategory('2'.charCodeAt()) //=> 'Nd'
unicode.getNumericValue('2'.charCodeAt()) //=> 2

API

getCategory(codePoint)

Returns the unicode general category for the given code point.

getScript(codePoint)

Returns the script for the given code point.

getCombiningClass(codePoint)

Returns the canonical combining class for the given code point.

getEastAsianWidth(codePoint)

Returns the East Asian width for the given code point.

getNumericValue(codePoint)

Returns the numeric value for the given code point, or null if there is no numeric value for that code point.

isAlphabetic(codePoint)

Returns whether the code point is an alphabetic character.

isDigit(codePoint)

Returns whether the code point is a digit.

isPunctuation(codePoint)

Returns whether the code point is a punctuation character.

isLowerCase(codePoint)

Returns whether the code point is lower case.

isUpperCase(codePoint)

Returns whether the code point is upper case.

isTitleCase(codePoint)

Returns whether the code point is title case.

isWhiteSpace(codePoint)

Returns whether the code point is whitespace: specifically, whether the category is one of Zs, Zl, or Zp.

isBaseForm(codePoint)

Returns whether the code point is a base form. A code point of base form does not graphically combine with preceding characters.

isMark(codePoint)

Returns whether the code point is a mark character (e.g. accent).

License

MIT

org.webjars.npm
📃 Typography and Page Layout in JavaScript

Versions

Version
1.3.1