Static export of platform-specific metadata for unicode emojis. ποΈ
npm i emoji-platform-data
import { byTitle } from "emoji-platform-data";
console.log(byTitle["Sparkling Heart"]);
/*
{
emoji: "π",
emojipedia: { "currentCldrName": "Sparkling Heart", ... },
fluemoji: { "cldr": "sparkling heart", ... },
gemoji: { "description": "sparkling heart", ... },
twemoji: { "description": "Sparkling heart", ... },
...
}
*/
emoji-platform-data
combines emoji data from the following projects:
- Emojipedia
- Fluent UI / Windows ("fluemoji")
- Gemoji
- Twemoji
Each emoji supported in at least one of those projects is stored by its emoji glyph and Emojipedia title.
π This documentation uses the excellent emojipedia.org as a source of information.
An emoji is a small image represented by a glyph in text. The Unicode Standard defines which characters in text map to which emojis, as well as how combinations of emoji characters combine to more emojis. For example:
- π₯ (
fire
) is represented by the string code U+1F525 - β€οΈ (
red heart
) is represented by the string codes: U+2764 U+FE0F - β€οΈβπ₯ (
heart on fire
) is represented by β€οΈ + a "zero-width joiner" + π₯: U+2764 U+FE0F U+200D U+1F525
π‘ Emojis are not the same as their predecessors, emoticons. Emoticons are symbols that combine traditional text characters, such as
:)
for "smiley" and(β―Β°β‘Β°)β―οΈ΅ β»ββ»
for "table flip".
The formal name, or π identity, for each emoji is standardized in Unicode. However, emojis may be associated with multiple names across different specifications. For example, πΏ can be referred to either as "Angry Face with Horns" or "Imp" depending on the source.
In addition to their name(s), emojis commonly have related terms, or π keywords, associated with them. These keywords are not standardized and may vary drastically across the various chat applications, operating systems, and shared open source libraries that each separately implement emoji pickers.
For example, π (octopus
) is defined in emoji-mart@5.5.2 -used by Bluesky and other projects- with ["animal", "creature", "ocean", "sea", "nature", "beach"]
.
This project attempts to bring together the π identity and π keywords across several sources of emoji data, each defined as a "platform". Platforms include:
- Chat platforms (Discord, Slack, ...)
- Operating systems (macOS, Windows, ...)
- Open source libraries used by platforms (
emoji-mart
, GNOME...)
Any grouping of emoji π identity and π keywords used by consumers today can qualify as a platform.
π If your platform isn't included in
emoji-platform-data
and doesn't have a trackingplatform-support
issue, please file an issue asking for it!
This is useful if you're looking to see the metadata supported for emojis in each of those platforms. For example, if you wanted to determine the keywords associated with any emoji, this would let you accumulate all the keywords across the supported platforms.
Benjamin Swerdlow π€ |
Dario VladoviΔ π€ π |
Gilles Piou π» |
Josh Goldberg β¨ π» π π π€ π π§ π π§ |
π This package was templated with
create-typescript-app
.