1.0.0 • Published 6 years ago

@bosscat/express-req-id v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

express-ip

An Express middleware that assigns a unique ID to each request

Table of Content

Installation

yarn add @bosscat/express-req-id

Basic Usage

import express from "express";
import reqID from "@bosscat/express-req-id";

const server = express();

server.use(reqID());

server.get("/", function(req, res) {
  res.send(req.reqID);
});

Typescript

This library is written. Types are provided.

License

This library is MIT licensed.