0.1.0 β’ Published 9 years ago
eji v0.1.0
the emoji cli tool you've always wanted!
Features:
- name -> emoji, and emoji -> name
- 'did you mean' style suggestions that go beyond levenshtein
- easy to add shell completion
- status codes, tty detection, just emoji/name on stdout
- emojis!
Install
npm install -g eji
Here's an example where we're searching for an emoji. One of the cool things is that only the emoji on the first line is written to stdout, so you can pipe just the emoji to a file, your clipboard, etc.
$ eji up
This is what you're looking for: π
But maybe also these:
- up π
- point_up βοΈ
- arrow_up β¬οΈ
- us πΊπΈ
- jp π―π΅
- page_facing_up π
- point_up_2 π
- arrow_double_up β«
- fr π«π·
- es πͺπΈ
Let's go the other way!
$ eji π
The code for this emoji is :up:
Now we're not all perfect, so what happens if you make a mistake?
$ eji trafic_lit
Not sure what a "trafic_lit" is. Maybe you meant one of these:
- traffic_light π₯
- trident π±
- toilet π½
- tractor π
- train π
- train2 π
- ticket π«
- rabbit π°
- black_nib βοΈ
- accept π
Thanks eji!
Shell completion
Well I just use fish, and this is the completion command. data/emoji-completion is just an emoji name on each line.
complete -x -c eji -d "Emoji" -a '(cat (npm root -g)/eji/data/emoji-completion)'
0.1.0
9 years ago