1.5.0 • Published 3 years ago

express-request-cuid v1.5.0

Weekly downloads
116
License
Apache-2.0
Repository
github
Last release
3 years ago

express-request-cuid

express-request-cuid

Overview

express-required-cuid provides a simple express/connect middleware for creating a new cuid for each request and appending an x-request-id header to the request and adding the requestId and id property to the request-object.

Usage

Just like above:

import requestCuid from 'express-request-cuid';
import express from 'express';

const app = express();

app.use(requestCuid());

Import the module and use it. It works with CJS require as well. For any additional configuration, please open a new issue

Have fun coding!

(Types are included)

1.5.0

3 years ago

1.3.0

7 years ago

1.2.3

7 years ago

1.2.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.1.0

7 years ago