mirror of
https://github.com/ikatyang/emoji-cheat-sheet.git
synced 2024-11-25 03:43:52 +01:00
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
const { getCategorizeGithubEmojiIds } = require("./fetch");
|
|
const { generateCheatSheet } = require("./markdown");
|
|
|
|
async function generate() {
|
|
return generateCheatSheet(await getCategorizeGithubEmojiIds());
|
|
}
|
|
|
|
if (require.main === /** @type {unknown} */ (module)) {
|
|
generate().then(cheatSheet => console.log(cheatSheet));
|
|
} else {
|
|
module.exports = generate;
|
|
}
|