@nderkim/promisify
v1.0.4
Published
Convert error-first callback style function to promise.
Downloads
6
Readme
promisify
Convert error-first callback style function to promise.
const promisify = require('@nderkim/promisify');
const res = await promisify(fn)(...args);
promisify :: fn -> (...args) -> Promise
fn :: (...args, cb) -> void
cb :: (err, res) -> void