webmoji
v3.0.0
Published
A small emoji dataset for the web.
Readme
webmoji
A small set of emoji data for the web.
Maintained to be compatible with a custom, forked version of
@tiptap/extension-emoji, one which can use:
- an optional
tagsproperty on the exportedEmojiItemtype e.g.tags?: string[]instead of the originaltags: string[] - PLANNED: a more compact fallback image strategy. See
EmojiItemcomments.
Bundle size
| Export | size | gzip | Description |
| ------------- | --------- | -------- | ----------------------------------- |
| . | 162.43 kB | 25.37 kB | default export, minimal data. |
| ./data_tags | 195.80 kB | 34.21 kB | With searchable tags. |
| ./data_all | 216.11 kB | 35.99 kB | With emoticons, tags, version |
| ./types | 0 kB | 0 kB | Just types. |
Types
EmojiItem
The default module and other data modules each export a single EmojiItem[].
type EmojiItem = {
/** Unique name of the emoji. */
name: string;
/** The emoji unicode character. */
emoji?: string;
/** Array of unique strings to find the emoji. */
shortcodes: string[];
/** A list of tags that can help for searching emojis. */
tags?: string[];
/** A name that can help to group emojis. */
group?: string;
/** A list of unique ASCII style emoticons. */
emoticons?: string[];
/** The unicode version the emoji was introduced. */
version?: number;
/** Store some custom data. */
[key: string]: any;
};History
v1.0.0
- Forked from @tiptap/extension-emoji v3.7.0
- Removed tiptap related code.
- Setup vite library build.
- Reorganized code to separate
scriptsfromsrc. - Modify
scripts/generate.tsandEmojiItemtype to produce smaller data. - Added options to
scripts/generate.tsto generate multiple files.
v2.0.0
- Changed package exports to expose
./types, removing duplicate type exports.- Actually export
EmojiItemtype instead of just using it.
- Actually export
v3.0.0
- Fixed package exports to expose types where necessary.
