Turn a callback style function into a function that returns a promise.
The recommended way to install promisify-function
is as a dependency of a project:
npm install --save promisify-function
Pass a callback style function and get a function the returns a Promise as result:
const fs = require('fs')
const promisify = require('promisify-function')
const mkdir = promisify(fs.mkdir)
Any contribution is more than welcome. In particular, if: