Skip to content

thecodedmind/nimoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

nimoji

Emoji support for Nim Gets emoji data from here, and saves the json to your home directory. Concept and design based on node-emoji with a few of my own ideas thrown in too.

(Not in Nimble package manager yet, as theres another package with the same name, and also I havent worked out how to do nimble things yet, still fairly new at Nim. To use, just download the .nim file and drop it in to the project directory.)

import nimoji

echo getEmoji "santa"
# πŸŽ…

echo getEmojiCode "πŸŽ…"
# santa

echo findEmoji "sant"
# πŸŽ…

echo findEmojis "sa"
# @["♐", "πŸ‡ΈπŸ‡¦", "πŸˆ‚οΈ", "🍢", "πŸŽ…", "πŸŽ’", "🎷", "🎽", "πŸ‘‘", "πŸ’†β€β™€οΈ", "πŸ’†β€β™€οΈ", "πŸ’†β€β™‚οΈ", "πŸ“‘", "πŸ˜†", "😞", "πŸ˜₯", "πŸ›°οΈ", "πŸ›Έ", "πŸ₯", "πŸ₯—", "πŸ₯ͺ", "πŸ¦•", "⏳", "β›΅"]

echo findEmojiCodes "sa"
# @["sagittarius", "flag-sa", "sa", "sake", "santa", "school_satchel", "saxophone", "running_shirt_with_sash", "sandal", "woman-getting-massage", "massage", "man-getting-massage", "satellite_antenna", "satisfied", "disappointed", "disappointed_relieved", "satellite", "flying_saucer", "croissant", "green_salad", "sandwich", "sauropod", "hourglass_flowing_sand", "sailboat"]

echo emojify "I love :santa:!"
# I love πŸŽ…!

echo demojify "I love πŸŽ…"
# I love :santa:

echo stripEmojis "I love πŸŽ…" ##also supports stripping discord supported emojis from text.
# I love

echo randomEmoji()
# ⏭️

About

Emoji support for Nim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages