@thi.ng/emoji
TypeScript icon, indicating that this package has built-in type declarations

0.1.36 • Public • Published

@thi.ng/emoji

npm version npm downloads Mastodon Follow

[!NOTE] This is one of 192 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

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.

References

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 (_).

Status

ALPHA - bleeding edge / work-in-progress

Search or submit any issues for this package

Installation

yarn add @thi.ng/emoji

ESM import:

import * as emoji from "@thi.ng/emoji";

Browser ESM import:

<script type="module" src="https://cdn.skypack.dev/@thi.ng/emoji"></script>

Skypack documentation

For Node.js REPL:

const emoji = await import("@thi.ng/emoji");

Package sizes (brotli'd, pre-treeshake): ESM: 11.78 KB

Dependencies

None

API

Generated API docs

import { EMOJI, NAMES } from "@thi.ng/emoji";

EMOJI["minibus"]
// "🚐"

NAMES["🚐"]
// "minibus"

Authors

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
}

License

© 2023 - 2024 Karsten Schmidt // Apache License 2.0

Package Sidebar

Install

npm i @thi.ng/emoji

Weekly Downloads

45

Version

0.1.36

License

Apache-2.0

Unpacked Size

79.2 kB

Total Files

10

Last publish

Collaborators

  • thi.ng