jhurliman / node-rate-limiter

A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
MIT License
1.5k stars 132 forks source link

Allow to define custom bucket size #95

Open mosch opened 1 year ago

mosch commented 1 year ago

Hey @jhurliman , thanks for this clean library! I wanted to define the bucket size independent from the tokensPerInterval, so I added the option.

Let me know what you think!