๐ฅ @nberlette/emoji
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.
๐ฆ Using as a resource
import
- ECMAScript/ES
// both named and default imports work just fine
import emojis, { emoji } from '@nberlette/emoji'
require
- CommonJS/Node
const emojis = require('@nberlette/emoji')
emoji.json
via CDN
Direct access to - ๐
unpkg.com/@nberlette/emoji@latest/emoji.json
- ๐
cdn.jsdelivr.net/npm/@nberlette/emoji/emoji.json
๐บ Command Line Interface
Install globally
yarn global add @nberlette/emoji
Usage
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