Add a .extend(...) option to expand upon the built-in dictionary #144
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Forking @bigpay-ali's #132 (comment):
I like this idea. Even after the latest emojilib gets merged in, it's possible folks will want to add their own context/project-specific emoji extensions.
One difficulty with this is that right now, all
node-emoji
APIs are exported standalone: e.g.import { findByName } from "node-emoji"
. This new extension API would need to either:node-emoji
moduleI'd lean towards the latter personally, as modifying global state is a worrisome thing to me.
My starting API proposal:
This differs from the original comment by being more explicit and open to later expansion, at the cost of extra verbosity.
The text was updated successfully, but these errors were encountered: