News for hackers. Stuff that matters.
Re:Understanding Node.js Event-Driven Architecture by Klathmon on Monday May 08, 2017 @09:49AM (#14291397)
The only one i've used before is Bluebird's `promisifyAll` method.

So when you require libraries, you can do so like:

    const fs = Promise.promisifyAll(require('fs'))
    // ... later    
    const fileContents = await fs.readFileAsync('filename.txt')
Basically it just adds "Async" after all functions that use node style callbacks.

There are no comments on this comment yet.