Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

EventEmitter-promisify built-in to the event prototype

License

Notifications You must be signed in to change notification settings

ShayBox/EventEmitter-Promisify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

EventEmitter-promisify built-in to the event prototype

Topics

Resources

License

Stars

Watchers

Forks