c2p
let callback style function return promise
Installation
$ npm install c2p
Example
let's make fs.access as an example.
we should use like fs.access(path[, mode], callback)
fs;
we can convert this style functions return promise.
try await ; console catch { console}
api
c2p(functionName, ...args)
functionName
: the function you want to convert.args
: the origin function arguments except callback function..
License
MIT