@thangnv-dev/rate-limiter-nest
v0.0.9
Published
Reusable library package in this monorepo.
Readme
@thangnv-dev/rate-limiter-nest
Reusable library package in this monorepo.
Install
npm install @thangnv-dev/rate-limiter-nestUsage
import * as api from '@thangnv-dev/rate-limiter-nest'Public API
This package exports the following API surface from src/index.ts:
export {
RATE_LIMITER_TOKEN,
RATE_LIMITER_NEST_OPTIONS_TOKEN,
RATE_LIMITER_NEST_ROOT_OPTIONS_TOKEN,
} from './tokens.js'
export { GlobalRateLimitGuard } from './global-rate-limit.guard.js'
export { RateLimit, RateLimitGuard } from './rate-limit.guard.js'
export { RateLimitService } from './rate-limit.service.js'
export { RateLimiterModule } from './rate-limiter.module.js'
export type {
RateLimitGlobalConfig,
RateLimitGlobalRouteConfig,
RateLimitHttpMethod,
RateLimitProfile,
RateLimitPolicy,
RateLimitBucketKeyFactory,
RateLimiterNestFeatureOptions,
RateLimiterNestModuleOptions,
RateLimiterNestAsyncOptions,
} from './types.js'
Development
yarn workspace @thangnv-dev/rate-limiter-nest build
yarn workspace @thangnv-dev/rate-limiter-nest test