How to setup the emitter event for the script on global and local script run?
hello there! It looks like this is very late but did you still need help with this? I would need additional clarification if so.
here is the documentation for the EventEmitter anyways https://nodejs.org/api/events.html