Emoji Autocomplete
📇 A small Node Library with zero production dependencies, turning words into emojis (turn rent into 🏠 💸). The API is quite simple:
Find Emoji using a search term
var autocomplete = require('emoji-autocomplete'); var matchedEmoji = autocomplete.match('rent');
The result will be:
[ComplexEmoji { name: 'rent', emoji: '🏠💸', isComplex: true, content: [ Emoji { name: 'house', emoji: '🏠' }, Emoji { name: 'money_with_wings', emoji: '💸' } ]}]
This also works with 'simple' Emoji, consisting of only one Emoji:
var autocomplete = require('emoji-autocomplete'); var matchedEmoji = autocomplete.match('turtle');
The result will be:
[Emoji { name: 'turtle', emoji: '🐢' }]
Find the Name for an Emoji
var autocomplete = require('emoji-autocomplete'); var matchedEmoji = autocomplete.name('🏠');
The result will be:
Emoji { name: 'house', emoji: '🏠'}
CLI Tools
This script comes with a few CLI tools for developers:
npm run search SEARCHTERM
- Search for an Emojinpm run add NAME EMOJI
- Add a new Emoji Combinationnpm run test
- Run Unit Testsnpm run parse
- Execute the Parser, turningsource.js
into the JSON-file used by this package
License
MIT. For details, please consult LICENSE
.