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 23:25:38 +08:00
async function generate() {
return generateCheatSheet(await getCategorizeGithubEmojiIds());
2019-04-09 23:25:38 +08:00
}
if (require.main === /** @type {unknown} */ (module)) {
generate().then(cheatSheet => console.log(cheatSheet));
2019-04-09 23:25:38 +08:00
} else {
module.exports = generate;
2019-04-09 23:25:38 +08:00
}