slack-emoji-to-ios

Convert slack emoji strings to iOS emojis

Usage no npm install needed!

<script type="module">
  import slackEmojiToIos from 'https://cdn.skypack.dev/slack-emoji-to-ios';
</script>

README

Slack string to Emoji

Install

Install using this command

npm i slack-emoji-to-ios

Usage

stringToEmoji accepts valid slack emoji strings as params. If an emoji is not found then an empty string is returned.

const { stringToEmoji, formatString } = require("slack-string-to-emoji");

const emoji = stringToEmoji(":smile:"); // will return 😄
const noEmoji = stringToEmoji(":abcdefg:"); // will return ""

const emojiString = formatString("No problem :smile:"); // will return "No problem 😄"

Emoji's not included

:person_with_pouting_face:
:person_with_pouting_face:
:person_frowning:
:person_frowning: :person_with_blond_hair: