Search for emojis with single words or phrases
const emojisearch = require('emojisearch')
const results = emojisearch('reading', 3)
// [
// {
// char: 'π',
// keywords: [ 'read', 'library', 'knowledge', 'textbook', 'learn' ],
// name: 'closed_book',
// score: 2.75
// },
// {
// char: 'π',
// keywords: [ 'read', 'library', 'knowledge', 'study' ],
// name: 'green_book',
// score: 2.7499
// },
// {
// char: 'π',
// keywords: [ 'read', 'library', 'knowledge', 'learn', 'study' ],
// name: 'blue_book',
// score: 2.7498
// }
// ]This library takes a different approach to sorting results, fuzzy maching, stemming, etc. A comparison table follows...
| phrase | emoji-search | emojisearch |
|---|---|---|
| watching tv | πΊ | πΊ |
| smoking cigarettes | π¬ | π¬ |
| taking a bath | π | π |
| swimsuit | - | π©± |
| driving kids to school | π« | π« |
| reading | π€± | π |
| on vacation | π | π |
| sick | π€ | π€ |
| awesome | βοΈ | π |
| workin' | - | ποΈ |
| taking a break | π | π |
| focus time | β | β |
| conversion tracking | π£ | π€οΈ |
| lunchtime | - | π₯ͺ |
| taking photos | π£ | - |
| performance testing | - | π§ͺ |
| getting ready | π | π |
| artist | ποΈ | π§βπ¨ |
| writing | ποΈ | βοΈ |
| plumber | π©βπ§ | π¨βπ§ |
| space exploration | π©βπ | π¨βπ |
| on my way | - | π |
| doctor | π₯Ό | π¨ββοΈ |
| on a call | π€ | βοΈ |
| napping | - | πͺ |
| listening to music | π· | πΆ |
MIT