/allmoji2

Primary LanguageJavaScript

allmoji2

The world's largest emoji library. Every emoji. From every vendor. Ever. All in one place.

API / Library:

function allmoji(vendor);

Returns all of the supplied vendors emojis as a map. Keys can be shortnames or codepoints.

Example:

// Require allmoji
let allmoji = require("./allmoji");
// Call it and pick a vendor. Valid vendors can be found in both the emojis/ or json/ folders.
let emojis = allmoji("microsoft");
// Getting an emoji by codepoint:
console.log(emojis["1f60b"]);
// Switching vendor:
emojis = allmoji("apple");
// Getting an emoji by shortname:
console.log(emojis.egg);
// Switching vendor again:
emojis = allmoji("twitter");
// Also getting an emoji by key:
console.log(emojis["sandwich"]);

Output:

Example Output