Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goulashify/smile
Emoji mapping to emoji converter to examine metaprogramming in Elixir.
https://github.com/goulashify/smile
Last synced: 7 days ago
JSON representation
Emoji mapping to emoji converter to examine metaprogramming in Elixir.
- Host: GitHub
- URL: https://github.com/goulashify/smile
- Owner: goulashify
- Created: 2016-12-06T16:07:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T22:01:20.000Z (8 months ago)
- Last Synced: 2024-04-14T21:07:11.718Z (7 months ago)
- Language: Elixir
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Small lib for converting emoji mappers to emoji characters, like in Slack messages. (Text and Numbers)
README
# Smile
Small lib for converting emoji mappers to emoji characters, like in Slack messages:
```elixir
import Smile
convert_text("my emoji game is :ok_hand_sign:")
# > "my emoji game is 👌"
```This is just an experiment to examine metaprogramming in Elixir, there's known limitations:
1. Emojis in the middle of other don't work, ex.: ":woo:pile_of_poo:hoo:" would not convert the `:pile_of_poo:` in the middleIdeas, suggestions, contributions welcome, just drop me a line at [[email protected]]([email protected])
## Installation
Available in Hex, the package can be installed as:
1. Add `smile` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:smile, "~> 0.1.0"}]
end
```2. Ensure `smile` is started before your application:
```elixir
def application do
[applications: [:smile]]
end
```