/emspect

EMoji inSPECTor

Primary LanguageJavaScript

๐Ÿ“งโ“‚๏ธ๐Ÿ’ฒ๐Ÿ…ฟ๏ธ๐Ÿ“งยฉ๏ธ๐Ÿ“ - EMSPECT

Emspect is a CLI utility to search emojis and inspect details of the character. It works on Node.js and can be also used as Node.js library so you can embed its features to your cool applications.

Examples

$ node ./bin/emspect sleep
๐Ÿ˜ช SLEEPY FACE (U+1F62A) - face, person, sleep :sleepy:
๐Ÿ˜ด SLEEPING FACE (U+1F634) - face, person, sleep, zzz :sleeping:
๐Ÿ’ค SLEEPING SYMBOL (U+1F4A4) - comic, emotion, person, sleep, symbol, word, zzz :zzz:
๐Ÿ›Œ SLEEPING ACCOMMODATION (U+1F6CC) - hotel, object, sleep
๐Ÿ› BED (U+1F6CF) - bed, hotel, object, sleep
$ node ./bin/emspect sleep --format all # verbose
U+1F62A ๐Ÿ˜ช       SLEEPY FACE     2010สฒ   emoji   face, person, sleep     :sleepy:
U+1F634 ๐Ÿ˜ด       SLEEPING FACE   2012หฃ   emoji   face, person, sleep, zzz        :sleeping:
U+1F4A4 ๐Ÿ’ค       SLEEPING SYMBOL 2010สฒ   emoji   comic, emotion, person, sleep, symbol, word, zzz        :zzz:
U+1F6CC ๐Ÿ›Œ       SLEEPING ACCOMMODATION  2014หฃ   emoji   hotel, object, sleep
U+1F6CF ๐Ÿ›       BED     2014สท   text    bed, hotel, object, sleep
$ node ./bin/emspect U+1F62A --format json # Can search from character code. Also output in JSON
[{"code":"U+1F62A","chars":"๐Ÿ˜ช","name":"SLEEPY FACE","synonym":null,"age":"2010สฒ","default":"emoji","annotations":["face","person","sleep"],"aliases":["sleepy"]}]
$ node ./bin/emspect "๐Ÿˆ" --format "%C %G" # tell me GFM emoji code!
๐Ÿˆ :koko:
$ node ./bin/emspect -n WHITE -a symbol # name contains `WHITE` and has annotation `symbol`
๐Ÿ’ฎ WHITE FLOWER (U+1F4AE) - flower, object, symbol :white_flower:
โœ… WHITE HEAVY CHECK MARK (U+2705) - check, mark, sign, symbol :white_check_mark:
โ” WHITE QUESTION MARK ORNAMENT (U+2754) - mark, outlined, punctuation, question, symbol, word :grey_question:
โ• WHITE EXCLAMATION MARK ORNAMENT (U+2755) - exclamation, mark, outlined, punctuation, symbol, word :grey_exclamation:
โ–ซ๏ธ WHITE SMALL SQUARE (U+25AB) - geometric, sign, square, symbol :white_small_square:
โ—ป๏ธ WHITE MEDIUM SQUARE (U+25FB) - geometric, sign, square, symbol :white_medium_square:
โ—ฝ๏ธ WHITE MEDIUM SMALL SQUARE (U+25FD) - geometric, sign, square, symbol
โฌœ๏ธ WHITE LARGE SQUARE (U+2B1C) - geometric, sign, square, symbol
๐Ÿ”ณ WHITE SQUARE BUTTON (U+1F533) - button, geometric, outlined, sign, square, symbol :white_square_button:
โšช๏ธ MEDIUM WHITE CIRCLE (U+26AA) - circle, geometric, sign, symbol

Requirements

  • Node.js >= 4

Installation

$ npm -g emspect

Usage

$ emspect --help
$
$ less ./test/emojis.js

I'm updating documents in hurry ๐Ÿ’ฆ