2.1.0 • Published 5 months ago

@sefinek/random-emoji v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

📥 • Installation

npm install @sefinek/random-emoji

😻 • Usage

FunctionDescription
unicodeGet a single emoji
emojisGet a random emoji with its name and type
catsGet a random cat
heartsGet a random heart
foodsGet a random food
circlesGet a random circle
new KaomojisGet random kaomojis from the API

😼 • Examples

const random = require('@sefinek/random-emoji');

// 1. A single emoji
console.log(random.unicode()); // 🥰

// 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

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

⛩️ • Kaomojis

» Async/await example

const random = require('@sefinek/random-emoji');

(async () => {
    const kaomoji = new random.Kaomojis();

    const uwu = await kaomoji.uwu();
    console.log('Random UwU:', uwu.message);
})();

» Promise example

const random = require('@sefinek/random-emoji');
const kaomoji = new random.Kaomojis();

kaomoji.uwu().then(data => console.log(data));
// or shorter
kaomoji.uwu().then(console.log);

» The returned object from API

{
  "success": true,
  "status": 200,
  "info": {
    "category": "kaomoji",
    "endpoint": "uwu"
  },
  "message": "UwU"
}

» Kaomoji endpoints

FunctionLink to the APIVersionExample
cat()Click herev2(=^-ω-^=)
dog()Click herev2ଘ(∪・ﻌ・∪)ଓ
owo()Click herev2𝓞𝔀𝓞
uwu()Click herev2𝕌𝕨𝕌
love()Click herev2ヽ(♡‿♡)ノ

📝 • Changelog

Click here

🤝 • Help

Need assistance or have questions about this module? Don't hesitate to open a new Issue on our GitHub repository. Our community is ready to help and provide answers to your inquiries.

⭐ • Thank you

If you use the Random Emoji module and appreciate my work, I'd be grateful if you could give it a star on our GitHub page. Your support helps me continue to develop this project and provide new and fun emojis to every user.

🎓 • MIT License

Copyright 2023 © by Sefinek. All Rights Reserved.

2.1.0

5 months ago

2.0.4

5 months ago

2.0.3

7 months ago

2.0.2

7 months ago

1.4.6

1 year ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

0.1.0

2 years ago

1.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago