This project is part of the @thi.ng/umbrella monorepo and anti-framework.
Bi-directional lookup tables mapping emoji names & their characters.
There're lots of other emoji packages available, most of them with various additional functionality & dependencies. In contrast, this package merely provides simple bi-directional mappings between emoji names & their actual characters. Nothing more, nothing less.
The index is based on the one used by node-emoji (which itself is sourced from the js-emoji package).
For reasons of uniformity, all hyphens (-
) in names have been replaced with
underscores (_
).
ALPHA - bleeding edge / work-in-progress
Search or submit any issues for this package
yarn add @thi.ng/emoji
ES module import:
<script type="module" src="https://cdn.skypack.dev/@thi.ng/emoji"></script>
For Node.js REPL:
const emoji = await import("@thi.ng/emoji");
Package sizes (brotli'd, pre-treeshake): ESM: 11.75 KB
None
import { EMOJI, NAMES } from "@thi.ng/emoji";
EMOJI["minibus"]
// "🚐"
NAMES["🚐"]
// "minibus"
If this project contributes to an academic publication, please cite it as:
@misc{thing-emoji,
title = "@thi.ng/emoji",
author = "Karsten Schmidt",
note = "https://thi.ng/emoji",
year = 2023
}
© 2023 Karsten Schmidt // Apache License 2.0