What is the reason behind of using readFileSync vs readFile?
Open
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
Assessment
This issue has not been assessed yet.