Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

await is only valid in async function #50

Closed
KimSeongheon678 opened this issue Mar 9, 2020 · 2 comments
Closed

await is only valid in async function #50

KimSeongheon678 opened this issue Mar 9, 2020 · 2 comments

Comments

@KimSeongheon678
Copy link

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
Copy link

pitust commented Mar 29, 2020

do this:

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

@heavysixer
Copy link
Owner

please reopen this issue if you need more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants