How to use leaky-bucket - 1 common examples

To help you get started, we’ve selected a few leaky-bucket examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mikerourke / trello-for-wolves / src / utils / requestRateLimiter.ts View on Github external
constructor(options: { backoffTime: number; maxWaitingTime: number }) {
    const { backoffTime, maxWaitingTime } = options;
    this.backoffTime = backoffTime;
    this.bucket = new LeakyBucket({
      capacity: 100,
      interval: 10,


A fast and efficient leaky bucket implementation

Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular leaky-bucket functions