/node-emojis

An emoji package for nodejs

Primary LanguageJavaScriptMIT LicenseMIT

Node Emoji

npm (scoped) npm (scoped)

A node package for emoji

Installation

npm install simple-node-emojis

Usage

const nodeEmojis = require("simple-node-emojis");

nodeEmojis.all();

Get all emojis. return [{...}]

nodeEmojis.findEmojiByKey(key);

Return object if valid or undefined if not valid.

nodeEmojis.findEmojiByName(name);

Return object if valid or undefined if not valid.

nodeEmojis.findEmojiByImage(param);

Return object if valid or undefined if not valid.

nodeEmojis.findEmojiByGroupName(groupName);

Get arrays of emoji belonging to the emoji group. return [{...}]

nodeEmojis.decodeEmoji(str);

Decode all valid emoji in parma (str) to key. e.g ":grinning_face:" => "😀"

nodeEmojis.encodeEmoji(str);

Encode all valid emoji in parma (str) to char. e.g "😀" => ":grinning_face:"

nodeEmojis.getRandomEmoji();

Get random emoji. return {...}