random-unicode-emoji

1.0.5 • Public • Published

random-unicode-emoji

npm Unicode downloads stars forks repo size issues

A simple JavaScript package that returns random Unicode emojis. 📜

Like this repo? Give it a on GitHub!

Install

npm install random-unicode-emoji

No dependencies!

Usage 🐙

// Require the module
var randomEmoji = require('random-unicode-emoji');

// Use the module
randomEmoji.random({count: 3});
// -> ["🐸", "🍇", "🚣"]

// Add custom emoji
randomEmoji.random({count: 3, custom: ['(° ͜ʖ ͡°)','(╯°□°)╯︵ ┻━┻']});
// -> ["🔥", "(° ͜ʖ ͡°)", "⚾"]

Discord Bots

This package is very popular among Discord bots. Below is an example of using the custom emoji feature to include custom Discord emojis.

randomEmoji.random({count: 3, custom: message.guild.emojis.map()});
// -> ["🤡", "<:HUH:1081269950800466059>", "😸"]

<:HUH:1081269950800466059> translates to an emoji for a specific Discord guild.

Update ☀️

npm update random-unicode-emoji

Unicode

Uses Unicode Standard Emoji from Unicode.org

Currently supports the latest Unicode Standard Version 15.0

Language

This is the JavaScript 📜 version. There is also a Python 🐍 and Rust ⚙️ version.

Maintainer

Nic Jones, (@NicPWNs)

Credit

Originally created by Pirijan, (@pketh)

Readme

Keywords

Package Sidebar

Install

npm i random-unicode-emoji

Weekly Downloads

516

Version

1.0.5

License

ISC

Unpacked Size

52.4 kB

Total Files

4

Last publish

Collaborators

  • pirijan
  • nicpwns