dwyl / dwyl/sendemail

What is the reason behind of using readFileSync vs readFile?

Open
#74 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
180
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Related to the following line: https://github.com/dwyl/sendemail/blob/master/lib/index.js#L38

I was wondering if you guys could clarify the above line for me.

Aren't we blocking the thread by using sync method in node? What happen if there is an error of reading the file?

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.