I was a huge promise chain, however I realized that one of the functions returns an object that has listeners and react to callbacks like
object.on('data', function(err, data) {
//do something
});
object.on('exit', function(err, data) {
//do something
});
I was wondering if there was a way to work this using promises and turn them into thenables. Is there no alternative to rewriting my entire promise chain to use callbacks?