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