Core functions
Core functions
(->alias unicode)
Convert a unicode
string to emoji shortcode/alias.
(->alias "👍")
;; => "thumbsup"
Convert a `unicode` string to emoji shortcode/alias. ```clojure (->alias "👍") ;; => "thumbsup" ```
(->emoji alias)
Convert a alias
string to emoji unicode.
(->emoji "thumbsup")
;; => "👍"
Convert a `alias` string to emoji unicode. ```clojure (->emoji "thumbsup") ;; => "👍" ```
(demojify s)
Replace emoji unicodes in a string with shortcodes/aliases.
(emojify "Clojure is awesome 👍")
;; => "Clojure is awesome :thumbsup:"
Replace emoji unicodes in a string with shortcodes/aliases. ```clojure (emojify "Clojure is awesome 👍") ;; => "Clojure is awesome :thumbsup:" ```
(emojify s)
Replace emoji aliases in a string with unicode codes.
(emojify "Clojure is awesome :thumbsup:")
;; => "Clojure is awesome 👍"
Replace emoji aliases in a string with unicode codes. ```clojure (emojify "Clojure is awesome :thumbsup:") ;; => "Clojure is awesome 👍" ```
(emojify-all s)
Replace every word in a sentence to emoji if it is an alias.
Be aware. This function might make you very annoying.
(emojify-all "Clojure pizza fire thumbsup smile")
;; => "Clojure 🍕 🔥 👍 😄"
Replace every word in a sentence to emoji if it is an alias. Be aware. This function might make you very annoying. ```clojure (emojify-all "Clojure pizza fire thumbsup smile") ;; => "Clojure 🍕 🔥 👍 😄" ```
Keywordized emoji data from the resources/emojis.json
Keywordized emoji data from the `resources/emojis.json`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close