You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
ganga satish kumar 7306578d7d attendance styles update 3 years ago
..
LICENSE Annual Health Checkup 3 years ago
data.json Annual Health Checkup 3 years ago
data.trie Annual Health Checkup 3 years ago
package.json Annual Health Checkup 3 years ago
readme.md Annual Health Checkup 3 years ago
unicode-properties.browser.cjs.js Annual Health Checkup 3 years ago
unicode-properties.browser.cjs.js.map Annual Health Checkup 3 years ago
unicode-properties.browser.es.js Annual Health Checkup 3 years ago
unicode-properties.browser.es.js.map Annual Health Checkup 3 years ago
unicode-properties.cjs.js Annual Health Checkup 3 years ago
unicode-properties.cjs.js.map Annual Health Checkup 3 years ago
unicode-properties.es.js Annual Health Checkup 3 years ago
unicode-properties.es.js.map Annual Health Checkup 3 years ago

readme.md

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