No description
Find a file
2023-02-13 17:24:30 +01:00
.github/workflows update github actions build -> test + add stable and devel 2023-02-13 17:24:30 +01:00
src Update fileExists since existsFile is deprecated. 2023-02-12 22:36:48 +07:00
tests double ':' no longer replaced by single ':' 2020-04-01 18:17:08 +02:00
tools emojiCategories generated as let 2020-04-20 21:27:20 +02:00
.gitignore fixed for linux 2020-04-20 21:26:49 +02:00
LICENSE Initial commit 2020-03-29 23:30:10 +02:00
nimoji.nimble Bump the version 2023-02-12 22:40:07 +07:00
README.md test title attribute 2020-10-02 16:18:23 +02:00

nimoji

🍕🍺 emoji support for Nim 👑 and the world 🌍.

Inspired by kyokomi and carpedm20. Emojis codemap is from muan.

Go to Emoji searcher for a searchable list of supported emojis.

Usage

From command line:

nimoji - 🍕🍺 emoji support for Nim 👑 and the world 🌍.
Usage: nimoji ARGUMENT

If ARGUMENT is an existing file, it will use as input the file,
otherwise it will use ARGUMENT as input.
Output is input with keywords delimited by ':' rendered as emoji.

Example usage:
  nimoji :wave:
    👋
  nimoji "hello :earth_africa:"
    hello 🌍
  nimoji hello.nim
    let 👋 = "hello"

    echo 👋 & " 🌍"

For a searchable list of supported emoji keywords: https://emoji.muan.co/

From Nim:

import nimoji

assert "I :heart: :pizza: and :beer:".emojize == "I ❤️ 🍕 and 🍺"
assert "The emoji for spaghetti: :spaghetti:".emojize, "The emoji for spaghetti: 🍝"

# substitution is style insensitive
assert "you say :to_ma_to: I say :ToMaTo:".emojize == "you say 🍅 I say 🍅"