flag_emoji
Version, currently 0.1.01 version
- 0.1.0latestOct 24, 2025
github.com/mamantoha/flag_emoji
A tiny Crystal library that converts a two-letter ISO 3166-1 alpha-2 country code into its corresponding emoji flag
0 stars
2 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
flag_emoji:
github: mamantoha/flag_emoji
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
>= 1.0.0- License
- MIT
- Author
- Anton Maminov
Dependencies
This version declares no dependencies.
README
flag_emoji
A tiny Crystal library that converts a two-letter ISO 3166-1 alpha-2 country code into its corresponding emoji flag. It provides a simple, zero-dependency API for turning codes like "US" or "jp" into πΊπΈ and π―π΅.
Installation
-
Add the dependency to your
shard.yml:dependencies: flag_emoji: github: mamantoha/flag_emoji -
Run
shards install
Usage
require "flag_emoji"
FlagEmoji.from_country_code("US") # => "πΊπΈ"
FlagEmoji.from_country_code("GB") # => "π¬π§"
FlagEmoji.from_country_code("JP") # => "π―π΅"
FlagEmoji.from_country_code("fr") # => "π«π·"
Contributing
- Fork it (https://github.com/mamantoha/flag_emoji/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
Contributors
- Anton Maminov - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Oct 24, 2025
- Commit
f755d0f8ae93- Crystal
>= 1.0.0- Indexed
- yes
Dependents
Repository
github.com/mamantoha/flag_emoji
Metadata
- Created
- Aug 16, 2026
- Updated
- Sep 24, 2026
- Synced
- Sep 24, 2026
- Versions
- 1