Skip to content

vestusola/node-emojis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 {...}

Releases

No releases published

Packages

No packages published