Skip to content

sidharthv96/unicode-lookup

 
 

Repository files navigation

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

About

Unicode lookup function

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%