function emojiToCodepoint
emojiToCodepoint(emoji: string): string

Returns the name Twemoji files emoji under: its codepoints in hex, joined with "-", without variation selectors (FE0F) unless the emoji is a ZWJ sequence. lib/index-html.ts also uses it as the icon URLs' cache-busting version.

Parameters

emoji: string

Return Type

string

Usage

import { emojiToCodepoint } from "api/lib/site-icons.ts";