0.5.3 • Published 1 year ago

unicode-lookup v0.5.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Unicode-lookup

Lookup by all symbols

Use a typed function to get the Unicode symbol by the title or the title itself if there is no such symbol.

const symbol = getSymbolByTitle('GEAR'); // ⚙
const noSuchSymbol = getSymbolByTitle('NO SYMBOL'); // NO SYMBOL

Supported Unicode version: 15

Lookup by category

Use separate functions according to categories described in UnicodeData if you want only a subset of symbols and support a tree shaking.

const symbol = getSymbolFromSo('GEAR'); // ⚙
const noSuchSymbol = getSymbolFromSo('PLUS SIGN'); // PLUS SIGN

Lookup by several categories

Use the getSymbolFromCategories function if you want to try to extract a symbol from several categories.

const symbol = getSymbolFromCategories('GEAR', [Sm, So]); // ⚙
const noSuchSymbol = getSymbolFromCategories('GEAR', [Sm, Pi]); // GEAR
const emptyList = getSymbolFromCategories('GEAR', []); // GEAR
0.5.3

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago