emoji.cr 
Emoji library for Crystal. Inspired by Emoji for Python
Installation
As a dependency in shard.yml
:
dependencies:
emoji:
github: veelenga/emoji.cr
branch: master
Usage
require "emoji"
puts Emoji.emojize("I :heart: :beer: and :football:")
Will print the following in console:
Also it is possible to remove all emoji from the string:
str = Emoji.emojize("Girl on :fire:")
Emoji.sanitize(str) #=> "Girl on "
Binary
You may also compile and use emojize
binary that just prints to console emojized string:
$ crystal build bin/emojize
$ ./emojize It will boom: :boom:
Resources
Contributing
- Fork it ( https://github.com/veelenga/emoji.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request