cool-emoji-pack
v1.0.0
Published
A simple NPM package for accessing cool emojis
Maintainers
Readme
Cool Emoji Pack
A simple NPM package for accessing cool emojis.
Installation
To install the package via NPM, run the following command:
npm install cool-emoji-packUsage
You can easily access emojis using their codes. Here's how to use the package in your project:
const { getEmoji } = require('cool-emoji-pack');
// Get emoji by code
const emoji = getEmoji('2049'); // returns "emojis/2049.png"
console.log(emoji);Get All Emojis
You can iterate over all the emojis using the mapping:
const emojiMap = require('cool-emoji-pack/src/emojiMap');
// Loop through all emojis and log their paths
for (const code in emojiMap) {
console.log(`${code}: ${emojiMap[code]}`);
}License
This project is licensed under the MIT License - see the LICENSE file for details.
