DEV Community


Discussion on: Refactoring node.js (Part 1)

paulasantamaria profile image
Paula SantamarĂ­a Author

Thank you Evan! I've only use promisify with the fs module, but I'll try to find more examples so we can understand it in depth together.

evanplaice profile image
Evan Plaice

Of course. I'm always excited to see someone dig deep into some more advanced topics.

Maybe this'll help

Here's promisify(exec):

And w/ some other file operations:

Thread Thread
paulasantamaria profile image