Negligent Pachinko Machine

    @sefinek/random-emoji
    TypeScript icon, indicating that this package has built-in type declarations

    1.4.2 • Public • Published

    🐱 About this package 🙀

    Returns a random emoticons (name, type) and kaomojis.

    The number of downloads Issues Last commit Commit activity Code size

    📥 • Installation

    $ npm install @sefinek/random-emoji

    😼 • Examples

    const random = require('@sefinek/random-emoji');
    
    // 1. A single emote
    console.log(random.unicode());
    // > 🥰
    
    // 2. Random emoji with name and type
    const emoji = random.emojis();
    console.log(`Name: ${emoji.name}; Emoji: ${emoji.content};`);
    
    // 3. Random cat
    const cat = random.cats();
    console.log(`Name: ${cat.name}; Emoji: ${cat.content};`);
    // > Name: smiley_cat; Emoji: 😺;

    😻 • Usage

    Function Description
    unicode A single emote
    emojis Random emoji with name and type
    cats Return random cat
    hearts Return random heart
    foods Return random food
    circles Return random circle
    kaomojis Return random kaomojis from API

    ⛩️ • Kaomoji

    » 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.love().then(data => console.log(data));

    » The returned object from API

    {
      "success": true,
      "status": 200,
      "category": "kaomoji",
      "endpoint": "uwu",
      "message": "🅤🅦🅤"
    }

    » Kaomoji endpoints

    Function Example
    cat (=^-ω-^=)
    dog ଘ(∪・ﻌ・∪)ଓ
    owo 𝓞𝔀𝓞
    uwu 𝕌𝕨𝕌
    love ヽ(♡‿♡)ノ

    📝 • Changelog

    https://github.com/sefinek24/random-emoji/blob/main/CHANGELOG.md

    🤝 • Help

    Open new Issue on GitHub.

    • Thank you

    Give a star if you can on GitHub page.

    Install

    npm i @sefinek/random-emoji

    DownloadsWeekly Downloads

    125

    Version

    1.4.2

    License

    MIT

    Unpacked Size

    93 kB

    Total Files

    15

    Last publish

    Collaborators

    • sefinek