UNPKG

nestjs-selective-throttler

Version:

A NestJS package that provides true selective throttling capabilities, applying only the named throttlers explicitly declared in route decorators.

19 lines 719 B
/** * NestJS Selective Throttler * * This package provides build-time code generation for selective throttling. * The actual decorators are generated in consumer projects at: * node_modules/.nestjs-selective-throttler/decorators.js * * Usage: * 1. Install: npm install nestjs-selective-throttler * 2. Add to package.json: "prebuild": "npm run generate" * 3. Add to package.json: "generate": "node node_modules/nestjs-selective-throttler/scripts/generate-throttler-names.js" * 4. Import: const { SingleThrottle } = require('.nestjs-selective-throttler/decorators'); */ export declare const PACKAGE_INFO: { name: string; version: string; description: string; }; //# sourceMappingURL=index.d.ts.map