Socket
Book a DemoInstallSign in
Socket

process-events-shim

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

process-events-shim

Shims process event functionality.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

process-events-shim Build Status Dependency Status

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 process already, or
  • if window.onerror is not null when this module is loaded

In Browserify-like environments, the following will happen:

  • the process object will get the standard EventEmitter methods.
  • window.onerror will be a function that emits an uncaughtException event on the process object.
  • a listener gets added to the window's unload event which emits an exit event 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

FAQs

Package last updated on 24 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts