1.0.2 • Published 1 year ago

generate-random-emoji v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

😀 Generate Random Emoji

Generate Random Emoji is an open-source npm package that allows developers to easily generate random emojis in their JavaScript projects. With an extensive collection of emojis, this package aims to add a fun and quirky touch to any application or website.

Visit our website randomgenerate.io and check out the live demo at Random Emoji Generator!

🚀 Installation

To install the Generate Random Emoji package, run the following command:

npm install generate-random-emoji

📚 Usage

After installation, simply import the package and use it in your project:

// Import the 'generate-random-emoji' module and assign it to the variable 'randomEmoji'
const randomEmoji = require('generate-random-emoji');

// Call the 'generateEmojis()' function from the 'randomEmoji' object with an integer argument 
// to generate one random emojis,

const randomEmojis = randomEmoji.generateEmojis(1);

// Output of the randomly generated emojis
console.log(randomEmojis);

// The output will be an array with one object containing information about the randomly generated emoji.
// The object will have four properties: 'code', 'name', 'image', and 'category', which provide information about the emoji.
// [{ code: 'U+1F36B', name: 'chocolate bar', image: '🍫', category: 'Food & Drink'}]

🔗 Links