https://github.com/frameable/emojisearch
Search for emojis
https://github.com/frameable/emojisearch
Last synced: 8 months ago
JSON representation
Search for emojis
- Host: GitHub
- URL: https://github.com/frameable/emojisearch
- Owner: frameable
- Created: 2022-11-02T19:11:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T19:35:56.000Z (over 2 years ago)
- Last Synced: 2025-03-16T07:41:34.928Z (over 1 year ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# emojisearch ๐
Search for emojis with single words or phrases
```javascript
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
// }
// ]
```
### Comparison with `@jukben/emoji-search`
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 | ๐ท | ๐ถ
### License
MIT