emoji.cr alternatives and similar shards
Based on the "Misc" category.
Alternatively, view emoji.cr alternatives based on common mentions on social networks and blogs.
-
sentry
Build/Runs your crystal application, watches files, and rebuilds/restarts app on file changes -
immutable
Thread-safe, persistent, immutable collections for the Crystal language -
crystagiri
An Html parser library for Crystal (like Nokogiri for Ruby) -
crz
Functional programming library for https://github.com/crystal-lang/crystal -
crystal-web-framework-stars
โญ๏ธ Web frameworks for Crystal, most starred on Github -
cron_scheduler
Simple job scheduler with crontab patterns for Crystal Language. -
aasm.cr
:arrows_clockwise: Easy to use finite state machine for Crystal classes -
inflector.cr
Inflector shard for Crystal. A port of ActiveSupport::Inflector -
kreal
Kreal is a model sharing & RPC library built on and works with Kemal seamlessly. -
retriable.cr
Retriable.cr is a simple DSL to retry failed code blocks -
ulid
Universally Unique Lexicographically Sortable Identifier (ULID) in Crystal -
CrSerializer
Extensible annotation based serialization/deserialization library -
circuit_breaker
Implementation of the circuit breaker pattern in crystal -
burocracia.cr
No dependency Crystal shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP -
wikicr
Wiki in crystal, using Markdown and Git, inspired by dokuwiki. Last features to build are pretty hard, if you have some time to help... :) -
m3u8
Generate and parse m3u8 playlists for HTTP Live Streaming (HLS) in Crystal. -
message_verifier.cr
Rails compatible MessageVerifier for Crystal-lang apps -
defined
This shard provides facilities for checking whether a constant exists at compile time, and for a variety of different conditional compilation options. Code can be conditionally compiled based on the existence of a constant, version number constraints, or whether an environment variable is set truthy or not.
TestGPT | Generating meaningful tests for busy devs
Do you think we are missing an alternative of emoji.cr or a related project?
README
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:
[](assets/screen.png)
Also it is possible to remove all emoji from the string:
str = Emoji.emojize("Girl on :fire:")
Emoji.sanitize(str) #=> "Girl on "
Sanitizing is based on Emoji regex. There are two options available:
:simple
emoji regex (default):generated
emoji regex
Simple regex uses unicode ranges to find emojis and may give some incorrect results. Generated regex is quite big, but works correctly in 100% cases. However, it is much slower than a simple regex.
If you need more accuracy sanitizing emojis and don't care about performance, just use generated one:
Emoji.sanitize(str, regex: :generated)
Regex
require "emoji"
string = "String which contains all kinds of emoji:
- Singleton Emoji: (๐)
- Textual singleton Emoji with Emoji variation: (โถ๏ธ)
- Emoji with skin tone modifier: (๐๐ผ)
- Region flag: (๐บ๐ฆ)
- Sub-Region flag: (๐ด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ)
- Keycap sequence: (7๏ธโฃ)
- Sequence using ZWJ (zero width joiner): (๐จโ๐ฉโ๐งโ๐ฆ)
"
string.scan(Emoji::GENERATED_EMOJI_REGEX) do |m|
puts "`#{m[0]}` - #{m[0].size} code points"
end
`๐` - 1 code points
`โถ๏ธ` - 2 code points
`๐๐ผ` - 2 code points
`๐บ๐ฆ` - 2 code points
`๐ด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ` - 7 code points
`7๏ธโฃ` - 3 code points
`๐จโ๐ฉโ๐งโ๐ฆ` - 7 code points
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:
[](assets/boom.png)
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