-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.js
38 lines (28 loc) · 988 Bytes
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const random = require('./index.js'); // Change to @sefinek/random-emoji
// A single emoji
console.log(random.unicode());
// Random emoji with name and type
const emoji = random.emojis();
console.log(`Name: ${emoji.name}; Emoji: ${emoji.content};`);
// Random cat
const cat = random.cats();
console.log(`Name: ${cat.name}; Emoji: ${cat.content};`);
// Random heart
const heart = random.hearts();
console.log(`Name: ${heart.name}; Emoji: ${heart.content};`);
// Random food
const food = random.foods();
console.log(`Name: ${food.name}; Emoji: ${food.content};`);
// Random circle
const circle = random.circles();
console.log(`Name: ${circle.name}; Emoji: ${circle.content};`);
// Random kaomoji
(async () => {
const kaomojis = new random.Kaomojis();
const kaoCat = await kaomojis.cat();
console.log(`Cat face: ${kaoCat.message}`);
const uwu = await kaomojis.uwu();
console.log(`Random UwU: ${uwu.message}`);
})();
// Version
console.log(`Module version: ${random.version}`);