characters

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

Methods

(static) associate(name, cp)

Add a character name to codepoint association to the index

Parameters:
NameTypeDescription
namestring

name or alias for this character

cpnumber

codepoint to associate with name

(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:
NameTypeDescription
namestring

name whose character you want to lookup

Returns:

character associated

Type: 
string

(async, static) load()

Load the character name/alias data