ok-emoji

3.0.0-beta7 • Public • Published

Build Status

Provides JavaScript helpers for working with emoji.

This includes code to swap or modify gender, and adjust the skin tone of emoji. There's also some browser-only code to guess whether an emoji is supported on your user's platform. It's browser-only as it requires HTMLCanvasElement or OffscreenCanvas.

Updated for Unicode 13.0. Generation code for "defs.js" is in Go at tr51/datagen.

Usage

TODO

Emoji Revisions

Every emoji release add a number of new basic emoji. However, many releases have tweaked or update the rules for emoji, typically w.r.t. combined emoji and gender.

2019 (E12)

Emoji 12.1 added nearly all missing gender neutral professions. Previously, professions were only created by "MAN/WOMAN + ZWJ + ROLE", e.g. "MAN + ZWJ + MICROPHONE" for "MAN SINGER", but 12.1 allows "PERSON + ZWJ + ROLE".

Additionally, across 12.0 and 12.1, support was added for skin tones for the "WOMAN AND MAN HOLDING HANDS" and related emoji. This allows different skin tones for both people in the emoji.

2020 (E13)

Emoji 13 made minor but interesting changes:

  • Added a gender neutral "MX CLAUS" to go with "SANTA CLAUS" and "MRS CLAUS". This gender neutral version is made up of "PERSON + ZWJ + HOLIDAY TREE", but the gendered versions still have a single old-style code point each. (ok-emoji can expando this to the "MAN/WOMAN + ZWJ + HOLIDAY TREE" for manipulation.)

  • It repurposed two old gendered emoji to create neutral "PERSON IN TUXEDO" and "PERSON IN VEIL", with new role variants ("MALE/FEMALE" roles).

Readme

Keywords

Package Sidebar

Install

npm i ok-emoji

Weekly Downloads

1

Version

3.0.0-beta7

License

Apache-2.0

Unpacked Size

739 kB

Total Files

25

Last publish

Collaborators

  • samthor