New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

unicode-lookup

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unicode-lookup

Unicode title-symbol map

latest
Source
npmnpm
Version
0.5.3
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 08 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts