Straightforward emoji database for your next project. Includes support for CommonJS, ES, and CLI.
yarn add @nberlette/emoji
Yarn saves this dependency in your
package.json
when installing locally.
// both named and default imports work just fine
import emojis, { emoji } from '@nberlette/emoji'
const emojis = require('@nberlette/emoji')
yarn global add @nberlette/emoji
emoji [keyword]
Note: if
keyword
is excluded, it prints the full list of emojis.
- Exact match: returns just the emoji for
keyword
- Single result: returns the emoji + keyword (or trigger)
- Many results: returns emoji + keyword for each match