1
0
mirror of https://github.com/ikatyang/emoji-cheat-sheet.git synced 2024-11-22 18:33:50 +01:00
emoji-cheat-sheet/scripts/generate.js

13 lines
366 B
JavaScript
Raw Normal View History

const { getCategorizeGithubEmojiIds } = require("./fetch");
const { generateCheatSheet } = require("./markdown");
2019-04-09 17:25:38 +02:00
async function generate() {
return generateCheatSheet(await getCategorizeGithubEmojiIds());
2019-04-09 17:25:38 +02:00
}
if (require.main === /** @type {unknown} */ (module)) {
generate().then(cheatSheet => console.log(cheatSheet));
2019-04-09 17:25:38 +02:00
} else {
module.exports = generate;
2019-04-09 17:25:38 +02:00
}