process-events-shim
v0.1.0
Published
Shims process event functionality.
Downloads
9
Readme
process-events-shim

Shims process event functionality.
Usage
require("process-events-shim")This will do nothing
- if not running in the browser,
- if any of the event functions are defined on
processalready, or - if
window.onerroris notnullwhen this module is loaded
In Browserify-like environments, the following will happen:
- the
processobject will get the standard EventEmitter methods. window.onerrorwill be a function that emits anuncaughtExceptionevent on the process object.- a listener gets added to the window's
unloadevent which emits anexitevent on the process object.
Credits
The initial structure of this module was generated by Jumpstart, using the Jumpstart Black Coffee template.
License
process-events-shim is released under the MIT License.
Copyright (c) 2013 Meryn Stol
