ES6: Emitting events from static methods
<p>What is the best way, or is there a best practice or workaround, to emit an event from a static method call?</p>

<p>Let's say I have a ES6 class that calls <code>upload</code> and uploads files in a directory recursively to some endpoint and I want an event emitted after each individual file is successfully uploaded. I know I can have the class inherit <code>EventEmitter</code>, but the <code>.on</code> and <code>.emit</code> functions don't exist without instantiating a new instance of the class. Is there any way around this?</p>