Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From my experience majority of async functions that I used are from the fs package and for that, there is nice wrapper called fs-promise (1) which converts all the functions from callbacks to promises.

For other stuff, I just create my own promise wrapper (if I feel like that promise interface would be better), which is like 5 lines of code.

[1] https://www.npmjs.com/package/fs-promise



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: