Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek24 committed Oct 8, 2023
1 parent 3bcc459 commit bec6b0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
```js
const random = require('@sefinek/random-emoji');

// 1. A single emote
// 1. A single emoji
console.log(random.unicode());
// > 🥰
// Output: 🥰

// 2. Random emoji with name and type
const emoji = random.emojis();
console.log(`Name: ${emoji.name}; Emoji: ${emoji.content};`);
// > Name: jack-o-lantern; Emoji: 🎃;
// Output: Name: jack-o-lantern; Emoji: 🎃;

// 3. Random cat
const cat = random.cats();
console.log(`Name: ${cat.name}; Emoji: ${cat.content};`);
// > Name: smiley_cat; Emoji: 😺;
// Output: Name: smiley_cat; Emoji: 😺;
```


Expand Down

0 comments on commit bec6b0e

Please sign in to comment.