A simple JavaScript package that converts text-based emoticons into corresponding emoji characters.
```bash npm install --save emoji-converter ```
```javascript const convertToEmoji = require('emoji-converter');
const textWithEmoticons = 'I am feeling :D today!'; const convertedText = convertToEmoji(textWithEmoticons); console.log(convertedText); // Output: I am feeling 😄 today! ```
The package currently supports the following emoticon to emoji mappings:
:)
=> 😊:(
=> 😢;)
=> 😉:D
=> 😄:P
=> 😋:O
=> 😮:|
=> 😐<3
=> ❤️:*
=> 😘:/
=> 😕>:(
=> 😠:0
=> 😲:3
=> 😊:heart:
=> ❤️:coffee:
=> ☕️:smile:
=> 😊:laughing:
=> 😂:wink:
=> 😉:yum:
=> 😋:heart_eyes:
=> 😍:sunglasses:
=> 😎:poop:
=> 💩
This package is licensed under the MIT License.