callbackfy
v1.0.0
Published
module to get callback patter from a promises pattern
Downloads
6
Maintainers
Readme
callbackfy
module to get a flow using callback from promises pattern
usage
const withCallback = callby((param) => {
assert(param === 'param');
return Promise.resolve('testing');
});
withCallback('param', (err, res) => {
assert(!err);
assert(res === 'testing');
done();
});
API
callbackfy(Function) => Function