Skip to content

nimoji - πŸ•πŸΊ emoji support for Nim πŸ‘‘ and the world 🌍.

License

Notifications You must be signed in to change notification settings

pietroppeter/nimoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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 πŸ…"

About

nimoji - πŸ•πŸΊ emoji support for Nim πŸ‘‘ and the world 🌍.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages