Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olyno/emoji-unicorn
Simple Java librairy to get an emoji from any value
https://github.com/olyno/emoji-unicorn
emoji java unicorn
Last synced: 6 days ago
JSON representation
Simple Java librairy to get an emoji from any value
- Host: GitHub
- URL: https://github.com/olyno/emoji-unicorn
- Owner: Olyno
- License: gpl-3.0
- Created: 2020-08-22T00:55:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T23:34:37.000Z (over 3 years ago)
- Last Synced: 2024-10-12T04:27:11.827Z (about 1 month ago)
- Topics: emoji, java, unicorn
- Language: Java
- Homepage: https://olyno.github.io/emoji-unicorn
- Size: 367 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emoji-unicorn
A simple Java librairy based on [emoji4j](https://github.com/kcthota/emoji4j) and using [emojis-list](https://github.com/Olyno/emojis-list)'s tool to be every time up to date.
* ⚡ Fast: emoji-unicorn will load only 1 times all emojis, that's all
* 💪 Flexbile: Get an emoji from its name, emoji, or unicode
* 🧠 Human logic: All syntaxes are easy to understand and to use## Getting started
First, you need to add the JitPack repository at the END of all your repositories. Emoji-unicorn is not available in Maven Central.
```groovy
repositories {
jcenter()
...
maven {
url 'https://jitpack.io'
}
}
```or if you use Maven
```
jitpack.io
https://jitpack.io
```
Then you will also need to add Gami as a dependency.
```groovy
dependencies {
implementation 'com.github.Olyno:emoji-unicorn:[versionTag]'
}
```or if you use Maven
```
com.github.Olyno
emoji-unicorn
[versionTag]```
## Usage
```java
public class App {public static main(String[] args) {
EmojiUnicorn unicorn = new EmojiUnicorn();
Emoji emoji = unicorn.getEmoji('unicorn');
System.out.println('Look my awesome unicorn: ' + emoji.getEmoji()); // Look my awesome unicorn: 🦄
System.out.println('Her name is: ' + emoji.getName()); // Her name is: unicorn
System.out.println('I can reproduce her using the unicode: ' + emoji.getUnicode()); // I can reproduce her using the unicode: U+1F984
System.out.println('And here names that my friends gave to her: ' + Arrays.asList(emoji.getShortNames()).toString()); // And here names that my friends gave to her: [:unicorn:, :unicorn_face:]
}}
```## Documentation
All documentation is available [here](https://olyno.github.io/emoji-unicorn).
## Buy me a ko-fi
Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this 😉 (personally I prefer hot chocolate but whatever)
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/olyno)
## License
Code released under GNU GPLv3 license.
Copyright ©, [Olyno](https://github.com/Olyno).