fying-promises
v1.0.1
Published
get promises flow from callback pattern
Downloads
5
Readme
fying-promises
module to promisify a function
usage
async () => {
const promised = pFying((param, cb)=>{
assert(param === 'param');
cb('error')
})
const error = await promised('param').catch(error=>error)
assert(error==='error');
}