diff --git a/README.md b/README.md index cbd7fa7..58b92bd 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ -Here's the modified README with the code snippets updated to use **ES6** syntax (`import` instead of `require`): - ---- - # Rate Limiter A customizable rate-limiting and throttling middleware for Node.js applications. It allows you to limit the number of requests a client can make to your server within a specified time window. @@ -18,7 +14,7 @@ A customizable rate-limiting and throttling middleware for Node.js applications. You can install the package via npm: ```bash -npm install rate-limitx +npm install digi-rate-limiter ``` ## Usage @@ -29,7 +25,7 @@ The package can be used as middleware in your Node.js/Express applications to li ```javascript import express from 'express'; -import rateLimiter from 'rate-limitx'; +import rateLimiter from 'digi-rate-limiter'; const app = express(); @@ -116,6 +112,7 @@ If you encounter any problems or have any questions, feel free to open an issue ## Links - **GitHub**: [https://git.digimantra.com/abad_dml/rate-limiter](https://git.digimantra.com/abad_dml/rate-limiter) -- **NPM**: [https://www.npmjs.com/package/rate-limitx](https://www.npmjs.com/package/rate-limitx) +- **NPM**: [https://www.npmjs.com/package/digi-rate-limiter](https://www.npmjs.com/package/digi-rate-limiter) + --- diff --git a/package.json b/package.json index 93ea4c5..354f58e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "rate-limitx", - "version": "1.4.0", + "name": "digi-rate-limiter", + "version": "1.1.0", "description": "Custom rate limiting middleware for Node.js", "main": "index.js", "keywords": [