@franziz/headers-middleware
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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"));

Readme

Keywords

none

Package Sidebar

Install

npm i @franziz/headers-middleware

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.46 kB

Total Files

12

Last publish

Collaborators

  • franziz