UNPKG

lightweight-api-rate-limiter

Version:

A robust, framework-agnostic rate limiter for Node.js applications, built for scalability and ease of use

15 lines (13 loc) 338 B
class RateLimitError extends Error { constructor(message) { super(message); this.name = 'RateLimitError'; } } class ConfigurationError extends Error { constructor(message) { super(message); this.name = 'ConfigurationError'; } } module.exports = { RateLimitError, ConfigurationError };