{"library":"events-intercept","type":"library","category":null,"description":"`events-intercept` is a Node.js library designed to introduce middleware-like interception capabilities to the standard `EventEmitter`. It allows developers to define functions that execute before an event's registered handlers, providing opportunities to modify event arguments, prevent event propagation, or trigger additional events based on intercepted data. The library extends `events.EventEmitter`, adding methods such as `intercept`, `interceptors`, `removeInterceptor`, and `removeAllInterceptors` to manage these pre-handler hooks. The current and last stable version is 2.0.0, released in 2015. This package is no longer actively maintained, making it unsuitable for new projects requiring ongoing support or modern JavaScript features like ES Modules. Its primary differentiator, historically, was providing a structured, waterfall-like approach to event processing, akin to request middleware, directly within the `EventEmitter` paradigm.","language":"javascript","status":"abandoned","version":"2.0.0","tags":["javascript","event","events","emit","intercept","tap","hook","report","mutate"],"last_verified":"Wed May 27","install":[{"cmd":"npm install events-intercept","imports":["const EventEmitter = require('events-intercept').EventEmitter;","const eventsIntercept = require('events-intercept');"]},{"cmd":"yarn add events-intercept","imports":[]},{"cmd":"pnpm add events-intercept","imports":[]}],"homepage":null,"github":"https://github.com/brandonhorst/events-intercept","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/events-intercept","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/events-intercept/compatibility"}}