Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek24 committed Dec 20, 2023
1 parent 2cf2048 commit 3917e57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const random = require('@sefinek/random-emoji');
// 1. A single emoji
console.log(random.unicode()); // 🥰

// 2. Random emoji with name and type
// 2. Random emoji along with its visual representation, name, and category
const emoji = random.emojis();
console.log(`Emoji: ${emoji.content}; Name: ${emoji.name}; Type: ${emoji.type}`);
// Emoji: 🐶; Name: Dog Face; Type: animal
Expand Down
2 changes: 1 addition & 1 deletion examples/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ async function displayEmojiData() {
// Get a single random Unicode emoji
data.push({ Function: 'unicode()', Emoji: random.unicode().trim() });

// Retrieves a random emoji with its name, visual representation, and type
// Retrieves a random emoji, including its visual representation, name, and category
const emoji = random.emojis();
data.push({ Function: 'emojis()', Emoji: emoji.content.trim(), Name: emoji.name, Type: emoji.type });

Expand Down

0 comments on commit 3917e57

Please sign in to comment.