ram-nad / Node-Rate-Limiter

A Rate Limiter using Node JS backed by Redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Usage

import RateLimit from "rate-limiter";

const rateLimiter = RateLimit({
  interval: INTERVAL,
  limit: LIMIT,
  delay: DELAY,
});

rateLimiter.check(id).then(console.log);

To use Redis pass redis: RedisClient to constructor.

About

A Rate Limiter using Node JS backed by Redis


Languages

Language:TypeScript 100.0%