Components
Home
Emojis
Name
@happeouikit/emojis
Latest
1.3.2
License
MIT
Installation
yarn add @happeouikit/emojis
Links
Dependencies (1)
lodash.sortby@^4.7.0
Emoji functions
This package was created to minimize the amount of code imported with the emojione library. The 3 main functions for emoji handling are shortToUnicode()
, emojisToShort()
, removeEmojis()
and listAllEmojis()
.
They can be used in different text environments and to list all emojis.
const text = "This is emoji with short hand :smile: converted to unicode";const renderText = shortToUnicode(text);const text2 = "This is unicode 😄 converted to short hand";const renderText2 = emojisToShort(text2);const text3 = "This is 😄 has emojis 😄 and they will be removed 😄";const renderText3 = removeEmojis(text3);