Skip to content

Commit

Permalink
README and badges updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshkumaravel committed Aug 7, 2020
1 parent 9428365 commit 7ce04ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# express-req-id
# node-express-req-id
[![NPM version][npm-image]][npm-url] ![express-req-id](https://github.com/rajeshkumaravel/express-req-id/workflows/express-req-id/badge.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/rajeshkumaravel/express-req-id/badge.svg?branch=master)](https://coveralls.io/github/rajeshkumaravel/express-req-id?branch=master)

- Generate CUID / UUID for express request and add it to `X-Request-Id` header.
Expand All @@ -10,15 +10,15 @@
**1. Install**

```
$ npm install --save express-req-id
$ npm install --save node-express-req-id
```

**2. Example**

```js
var express = require('express');
var app = express();
var expressreqid = require('express-req-id')({
var expressreqid = require('node-express-req-id')({
type: 'cuid' // `uuid` or `cuid`
});

Expand All @@ -44,7 +44,7 @@ app.get('/test', (req, res, next) => {

# API

### express-req-id([options])
### node-express-req-id([options])

Returns either `uuid` or `cuid` middleware and appends to request object

Expand All @@ -59,7 +59,7 @@ Returns either `uuid` or `cuid` middleware and appends to request object

# License

The express-req-id is licensed under the MIT License. See LICENSE for more information.
The node-express-req-id is licensed under the MIT License. See LICENSE for more information.

[npm-url]: https://npmjs.org/package/express-req-id
[npm-image]: http://img.shields.io/npm/v/express-req-id.svg
[npm-url]: https://npmjs.org/package/node-express-req-id
[npm-image]: http://img.shields.io/npm/v/node-express-req-id.svg
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "express-req-id",
"name": "node-express-req-id",
"version": "1.0.0",
"description": "Express middleware for adding unique request id using uuid / cuid",
"main": "./lib/index.js",
Expand Down

0 comments on commit 7ce04ce

Please sign in to comment.