Promonce
Promise based event wrapper
Disclaimer
I should bern in the hell for this module!
API
target - EventEmitter based object.
event - A name of event which you want to listen on.
error - A name of error event. on
will be rejected when this event fired.
Usage
ES6 example
const on = ;const net = ; const connection = net;;
ES6 example with coroutines
const co = ;const on = ;const get = get; { return }
ES7 example
const on = ;const get = get; { const response = await ; let data = ''; while await const chunk = response; if chunk data += chunk; else break; return data;}