Package detail

util.promisify-all

SimenB1.4kMIT1.0.2

Build Status npm

readme

util.promisify-all

Build Status npm

'util.promisify' for objects. Uses util.promisify under the hood.

Example:

const promisify = require('util.promisify-all');

const fs = promisify(require('fs'));

fs.readFile('/tmp/file.txt').then(console.log).catch(console.error);