emoji-cheat-sheet/scripts/generate.ts
2023-07-22 19:19:36 +08:00

11 lines
279 B
TypeScript

import { getCategorizeGithubEmojiIds } from './fetch.js'
import { generateCheatSheet } from './markdown.js'
export async function generate() {
return generateCheatSheet(await getCategorizeGithubEmojiIds())
}
if (process.argv[2] === 'run') {
console.log(await generate())
}