/EventEmitter-Promisify

EventEmitter-promisify built-in to the event prototype

Primary LanguageJavaScriptMIT LicenseMIT

Just load the package by importing it

require('eventemitter-promisify');

const error = await event.promisify('error')
console.log(error);

Works with Typescript!

import 'eventemitter-promisify';

const error = await event.promisify('error')
console.log(error);