hij1nx/EventVat — Issue #7: How do I use this in node?
Author: fent
Created: 2012-01-31 03:50:52+00:00
State: open

Great library you got here. But I feel its focus is more on the browser. When I try to run it in node I get this.

`ReferenceError: EventEmitter2 is not defined`

That's because the library expects the user to include EE2. This would be ideal on the browser, but in node, I don't wanna put EE2 in global.

An easy fix would be to check if EE2 is defined, if not check if `require` is defined and attempt to require EE2.