From de486fd21c54232413f1a5b6c9b352d8e4607924 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 26 Jan 2024 10:03:11 +0100 Subject: [PATCH] add direct class import example --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9262b17..745280e 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ It uses **fixed window** as it is much faster than rolling window. // ECMAScript import { RateLimiterMemory } from "rate-limiter-flexible"; + // or + import RateLimiterMemory from "rate-limiter-flexible/lib/RateLimiterMemory.js"; ``` ## Basic Example