Holds data for unicode character names and aliases. Most of the data comes from the raw unicode source files, with supplementary names and aliases coming from the node-unicode
library
- Source
Methods
(static) associate(name, cp)
Add a character name to codepoint association to the index
Parameters:
Name | Type | Description |
---|---|---|
name | string | name or alias for this character |
cp | number | codepoint to associate with |
- Source
(static) get(name) → {string}
Get character for a given name, or null if there is no known character association. This normalizes the name prior to lookup using unidata#normalize. You must call characters#load before to load the dataset.
Parameters:
Name | Type | Description |
---|---|---|
name | string | name whose character you want to lookup |
- Source
Returns:
character associated
- Type:
- string
(async, static) load()
Load the character name/alias data
- Source