emoji-translator
Installation
npm i emoji-translator -S
API
Table of Contents
create
Create a translator function that can be used to replace the emoji
Parameters
vocabulary
Object emoji vocabulary map
Examples
; const vocabulary = '🍏': 'Apple' '🍋': 'Lemon' '🍌': 'Banana' ;const translate = const string = console // A Banana is normally sweeter than an Apple
Returns Function the translation function converting strings containing emoji to plain text