heavysixer / node-pptx

Generate PPTX files on the server-side with JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

await is only valid in async function

KimSeongheon678 opened this issue · comments

when i folow examples , i have some issues that ' i cant use await becuz it can be used only in async function' but i saw that node-pptx is sync funtion,,,
so how can i use await like you used in examples??

do this:

async function main() {
// Your code here
}
main();

please reopen this issue if you need more help.