{"id":19364472,"url":"https://github.com/math2001/goemoji","last_synced_at":"2025-11-09T04:03:46.862Z","repository":{"id":57605633,"uuid":"84534347","full_name":"math2001/goemoji","owner":"math2001","description":"A go program to pipe emoji's aliases and get the actual symbol :zap:","archived":false,"fork":false,"pushed_at":"2017-07-30T01:17:58.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T12:06:26.961Z","etag":null,"topics":["emoji","gitmoji","golang","pipe"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/math2001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-10T07:55:23.000Z","updated_at":"2018-11-15T04:39:16.000Z","dependencies_parsed_at":"2022-08-27T22:40:57.242Z","dependency_job_id":null,"html_url":"https://github.com/math2001/goemoji","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/math2001/goemoji","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fgoemoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fgoemoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fgoemoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fgoemoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/math2001","download_url":"https://codeload.github.com/math2001/goemoji/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fgoemoji/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263897921,"owners_count":23526831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emoji","gitmoji","golang","pipe"],"created_at":"2024-11-10T07:37:29.106Z","updated_at":"2025-11-09T04:03:46.822Z","avatar_url":"https://github.com/math2001.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoEmoji\n\nI spent some time looking for something really simple: I wanted to be able to do this:\n\n```bash\n$ echo 'Hello world :tada:' | someprogram\nHello world 🎉\n```\n\nI didn't find one quickly enough, and as I want to learn go, I thought that doing it myself could be\na good task (and it was :smile: I learned a :shit:-load of new stuff :tada:)\n\nTo get it working on your machine, just grab the latest `.exe` from the [tags][], and add an alias\nto it or add it in your `PATH`.\n\n```bash\n# .bashrc\nalias goemoji=\"path/to/goemoji.exe $*\"\n```\n\n*Note: the* `$*` *at then end allows to give arguments*\n\nNow, you can do\n\n```\n$ echo 'I :heart: code' | goemoji\nI ❤ code\n```\n\nYou can also build it yourself, it's simple:\n\n```\n$ go build goemoji.go\n```\n\n:tada:\n\n### Add a suffix\n\nI'm on Windows, and I'm using Hyper. ~~At this time, Hyper has a bug, emoji take too much room, which\n\"eat\" the following char~~. The solution to prevent this is to add a space just after (so that it\neats the space).\n\n*Note: this bug has been fixed in the version* `1.3.1` *of Hyper. But I'll leave this feature, it*\n*might be useful for some people*.\n\nSo, you can specify a suffix by passing it as an argument:\n\n```\n$ git log | goemoji \" \"\n```\n\nOr by setting it as an environment variable:\n\n```\n$ export GOEMOJI_SUFFIX=\" \"\n$ git log | goemoji\n```\n\n### `--color=always`\n\nPlenty of program add color to their output *only if the destination is a terminal*. So, when you\npipe it, it doesn't use colors (so you get emoji, but no color :disappointed:). It's the case for\n`git log`.\n\nFortunatly, there's often an option to *oblige* colored output. For `git log`, it's `--color=always`\n\n```\n$ git log --color=\"always\" --oneline --graph --decorate -10 --all | goemoji\n```\n\n:wink:\n\nThat's it! Hope you enjoy it (don't forget to :star: this repo if it did :smile:)\n\n[tags]: https://github.com/math2001/goemoji/releases/latest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Fgoemoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmath2001%2Fgoemoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Fgoemoji/lists"}