Skip to content

Krava17/Emojiconverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Emoji Converter

A simple JavaScript package that converts text-based emoticons into corresponding emoji characters.

Installation

```bash npm install --save emoji-converter ```

Usage

```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! ```

Emoji Mapping

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: => ๐Ÿ’ฉ

License

This package is licensed under the MIT License.

About

By Krava

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published