emojinator027
v3.0.0
Published
converts code to emojies
Downloads
5
Readme
Emojinator027 Emojinator is a simple JavaScript library that allows you to translate plain text code into emoji code and vice versa. It replaces common JavaScript keywords and symbols with corresponding emojis, making your code more visually appealing.
Installation To use Emojinator027 in your project, you can install it via npm:
npm install emojinator027
Usage Translating Plain Text to Emoji Code
javascript code
const emojinator = require('emojinator027');
const code = function add(a, b) {
return a + b;
}
;
const emojiCode = emojinator.translateToEmojiCode(code); console.log(emojiCode); Output:
code 🔤 add 🔄🔤 a 🔗 🔤 b 🔄🔼 🔤 return 🔤 a ➕ 🔤 b 🔚🔽 Translating Emoji Code to Plain Text javascript Copy code const emojinator = require('emojinator');
const emojiCode = '🔤 add 🔄🔤 a 🔗 🔤 b 🔄🔼 🔤 return 🔤 a ➕ 🔤 b 🔚🔽';
const plainText = emojinator.translateToPlainText(emojiCode); console.log(plainText);
Output:
code function add(a, b) { return a + b; } Emoji Mapping Emojinator uses the following emoji mapping:
'const': '🔤' 'let': '📝' 'var': '🔡' 'function': '🔤' '(': '🔄' ')': '🔄' '{': '🔼' '}': '🔽' '=>': '⏩' '=': '🔁' '+': '➕' '-': '➖' '*': '✖️' '/': '➗' ';': '🔚' ',': '🔗' 'console.log': '🖨' Feel free to contribute to the emoji mapping or suggest improvements!
License This project is licensed under the MIT License - see the LICENSE file for details.