heavysixer / node-pptx

Generate PPTX files on the server-side with JavaScript.
MIT License
161 stars 44 forks source link

await is only valid in async function #50

Closed KimSeongheon678 closed 3 years ago

KimSeongheon678 commented 4 years ago

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??

pitust commented 4 years ago

do this:

async function main() {
// Your code here
}
main();
heavysixer commented 3 years ago

please reopen this issue if you need more help.