Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mullayam/nodejs-express-interceptor

Build Express middleware to intercept / replace / inspect / transform response
https://github.com/mullayam/nodejs-express-interceptor

Last synced: 8 days ago
JSON representation

Build Express middleware to intercept / replace / inspect / transform response

Awesome Lists containing this project

README

        

```js
const { Interceptor } = require("@enjoys/express-interceptor");
// import { Interceptor } from "@enjoys/express-interceptor";
const express = require("express");
cosnt app = express();
// ....
Interceptor.useInterceptors(app, {
response: { test: "Interceptor Response " },
// enter your custom interceptor in object format
isEnable: false,
// default is false, to use interceptor isEnabled must be true
});
```