@franziz/headers-middleware
v1.0.0
Published
This middleware will check if the header available or not.
Downloads
2
Readme
Must Have Headers
A simple ExpressJS middleware to check if the header is available or not.
How to Use
Please refer to below reference on how to use the package
import MustHaveHeaders from ".";
import express from "express";
const app = express();
app.use(MustHaveHeaders.handle(["x-consumer-id"]));
app.listen(3000, () => console.log("Listening to port 3000"));