diff --git a/README.md b/README.md index 3573f7c..cbd7fa7 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +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. @@ -24,8 +28,8 @@ npm install rate-limitx The package can be used as middleware in your Node.js/Express applications to limit requests. Here's an example to allow **10 requests per second**. ```javascript -const express = require('express'); -const rateLimiter = require('rate-limitx'); +import express from 'express'; +import rateLimiter from 'rate-limitx'; const app = express();