All Projects → enescakir → Emoji

enescakir / Emoji

Licence: mit
A minimalistic emoji package for Go (golang)

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Emoji

Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (-63.38%)
Mutual labels:  terminal, emoji
Rich
Rich is a Python library for rich text and beautiful formatting in the terminal.
Stars: ✭ 31,664 (+9984.08%)
Mutual labels:  terminal, emoji
Csconsoleformat
.NET C# library for advanced formatting of console output [Apache]
Stars: ✭ 296 (-5.73%)
Mutual labels:  terminal
Glorious Demo
The easiest way to demonstrate your code in action.
Stars: ✭ 3,290 (+947.77%)
Mutual labels:  terminal
Pastel
A command-line tool to generate, analyze, convert and manipulate colors
Stars: ✭ 3,742 (+1091.72%)
Mutual labels:  terminal
Tart
Tart - draw ASCII art in the terminal with your mouse!
Stars: ✭ 296 (-5.73%)
Mutual labels:  terminal
Termox
C++17 Terminal User Interface(TUI) Library.
Stars: ✭ 306 (-2.55%)
Mutual labels:  terminal
Whirly
Colorful Terminal Spinner for Ruby 😀︎
Stars: ✭ 295 (-6.05%)
Mutual labels:  terminal
Autodl Irssi
A community-driven fork of autodl-irssi
Stars: ✭ 315 (+0.32%)
Mutual labels:  terminal
Fff
📁 A simple file manager written in bash.
Stars: ✭ 3,445 (+997.13%)
Mutual labels:  terminal
Xxl Tool
a series of tools that make Java development more efficient.(Java工具类库XXL-TOOL)
Stars: ✭ 311 (-0.96%)
Mutual labels:  emoji
Terminal Icons
A PowerShell module to show file and folder icons in the terminal
Stars: ✭ 303 (-3.5%)
Mutual labels:  terminal
Enigma Bbs
ENiGMA½ BBS Software
Stars: ✭ 294 (-6.37%)
Mutual labels:  terminal
Hacklock
Hack Android Pattern From Termux With This Tool
Stars: ✭ 300 (-4.46%)
Mutual labels:  terminal
Termplotlib
Plotting on the command line
Stars: ✭ 294 (-6.37%)
Mutual labels:  terminal
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+944.27%)
Mutual labels:  terminal
Slack Emojinator
Bulk upload emoji into Slack
Stars: ✭ 296 (-5.73%)
Mutual labels:  emoji
Spotui
Spotify in the terminal 💻🎶
Stars: ✭ 302 (-3.82%)
Mutual labels:  terminal
Has
✅ checks presence of various command line tools and their versions on the path
Stars: ✭ 309 (-1.59%)
Mutual labels:  terminal
Eureka
💡 CLI tool to input and store your ideas without leaving the terminal
Stars: ✭ 316 (+0.64%)
Mutual labels:  terminal

emoji 🚀 🎒 🎉

Build Status godoc Go Report Card Codecov MIT License

emoji is a minimalistic emoji library for Go. It lets you use emoji characters in strings.

Inspired by spatie/emoji

Install 💾

go get github.com/enescakir/emoji

Usage 🏄

package main

import (
    "fmt"

    "github.com/enescakir/emoji"
)

func main() {
	fmt.Printf("Hello %v\n", emoji.WavingHand)
	fmt.Printf("I am %v from %v\n",
		emoji.ManTechnologist,
		emoji.FlagForTurkey,
	)
	fmt.Printf("Different skin tones.\n  default: %v light: %v dark: %v\n",
		emoji.ThumbsUp,
		emoji.OkHand.Tone(emoji.Light),
		emoji.CallMeHand.Tone(emoji.Dark),
	)
	fmt.Printf("Emojis with multiple skin tones.\n  both medium: %v light and dark: %v\n",
		emoji.PeopleHoldingHands.Tone(emoji.Medium),
		emoji.PeopleHoldingHands.Tone(emoji.Light, emoji.Dark),
	)
	fmt.Println(emoji.Parse("Emoji aliases are 😎"))
	emoji.Println("Use fmt wrappers 👍 with emoji support 🎉")
}

/* OUTPUT

    Hello 👋
    I am 👨‍💻 from 🇹🇷
    Different skin tones.
      default: 👍 light: 👌🏻 dark: 🤙🏿
    Emojis with multiple skin tones.
      both medium: 🧑🏽‍🤝‍🧑🏽 light and dark: 🧑🏻‍🤝‍🧑🏿
    Emoji aliases are 😎
    Use fmt wrappers 👍 with emoji support 🎉
*/

This package contains emojis constants based on Full Emoji List v13.0.

emoji.CallMeHand // 🤙
emoji.CallMeHand.Tone(emoji.Dark) // 🤙🏿

Also, it has additional emoji aliases from github/gemoji.

emoji.Parse("👍") // 👍
emoji.Parse("💯") // 💯

You can generate country flag emoji with ISO 3166 Alpha2 codes:

emoji.CountryFlag("tr") // 🇹🇷
emoji.CountryFlag("US") // 🇺🇸
emoji.Parse("country flag alias :flag-gb:") // country flag alias 🇬🇧

All constants are generated by internal/generator.

Testing 🔨

go test

Todo 📌

  • Add examples to godoc

Contributing 👨‍💻

I am accepting PRs that add aliases to the package. You have to add it to customEmojis list at internal/generator/main.

If you think an emoji constant is not correct, open an issue. Please use this list to look up the correct unicode value and the name of the character.

Credits ⭐️

License 📜

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].