Convert human unfriendly strings to emoji in your terminal
There are a lot of human unfriendly strings out there, for instance, UUIDs and SHA1s.
When you have to work with a couple of these strings, it's manageable; most programmers I know see
f985dab7704a and remember that as "the one that starts with f9." And tab completion helps.
But when you start to have tens or hundreds of these strings, it starts to get messy, and we lose the ability to quickly look at some output and see what node/commit/container/image is being referenced.
emo requires nodejs. Once you've installed node (which now comes bundled with
npm) you can install
emo by running
npm install -g emo2
You can pipe stdout to emo, and emo will replace human unfriendly strings with emoji, and store that data to
git log | emo
docker ps | emo
Then you can look stuff up in either direction, like so:
docker kill $(emo 👾)
When piping, you can add
-s to have emo add spacing equivalent to the length of the string being replaced.
gitlg | emo -s
When you see an emoji and want to know what the hell it's called, you can get node-emoji's name for it with the
emo 📠 -i
There's also a sample mode, which just returns random emoji, which you can "use" like so:
emo sample 10
created by zach schwartz