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.