Express Intercept Middleware
JSON →express-intercept is a lightweight Express.js middleware library providing a fluent API for intercepting, inspecting, replacing, and transforming HTTP responses and requests. It simplifies complex tasks like modifying response bodies, logging sensitive request/response data, or dynamically altering content types. The current stable version, 1.1.1, demonstrates active maintenance, though a formal release cadence is not specified. A key differentiator is its robust handling of chunked and compressed responses, automatically decompressing and recompressing as needed, allowing developers to work with response bodies as strings, buffers, or streams without manual stream manipulation for these complexities. It offers conditional execution of interceptors via `for()` and `if()` methods, enabling targeted and efficient middleware application.
Traffic · last 30 days ↑133% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany