Open ghost opened 7 years ago
Yepp, there are libs which does the same but they are module specific, e.g. https://www.npmjs.com/package/async-file They are checking whether there is a callback present and if no, then they generate it... I think it is relative easy to add new features to this lib. I already created my own ES5 compatible version of it. Maybe I'll develop it further and publish it, idk. yet, I already have too many projects.
Hey!
Thanks for your comment.
I think the reason might be that node has added a promisify
function in utils as shown here:
https://github.com/nodejs/node/pull/12442
@merisbahti Thanks! I did not know that.
What is really nice that you can wrap entire modules with it and you can use ES7 async functions. e.g.
I was wondering why so few stars you get. Maybe there is another lib with the same features or node modules were already converted so they don't need to be wrapped? I did not check yet.