UNPKG

emojicoder

Version:

A package that converts regular text into emoji-representative text. For instance, it can turn "I love pizza" into "I ❤️ 🍕".

24 lines (15 loc) 596 B
# emojiCoder `emojiCoder` is a simple npm package that converts regular text into emoji-representative text. For example, it can convert "I love pizza" into "I ❤️ 🍕". ## Installation You can install `emojiCoder` via npm: ``` npm install emojiCoder ``` ## Usage ``` const emojiCoder = require('emojiCoder'); const emojiText = emojiCoder('I love pizza and coffee'); console.log(emojiText); // Prints: I ❤️ 🍕 and ☕ ``` ## Contributing If you have suggestions for how emojiCoder could be improved, or want to report a bug, open an issue! We'd love all and any contributions.