UNPKG

express-api-limiter

Version:

express-api-rate-limit is a simple and customizable rate-limiting middleware for Express.js applications, designed to prevent abuse by restricting the number of requests a client can make within a specified time window. This package allows you to define d

46 lines (45 loc) 1.43 kB
{ "name": "express-api-limiter", "version": "1.0.2", "description": "express-api-rate-limit is a simple and customizable rate-limiting middleware for Express.js applications, designed to prevent abuse by restricting the number of requests a client can make within a specified time window. This package allows you to define different rate limits for individual routes, providing flexibility and control over API access.", "main": "index.js", "types": "dist/index.d.ts", "scripts": { "test": "mocha -r ts-node/register src/test/**/*.test.ts", "build": "tsc" }, "dependencies": { "express": "^4.17.1", "supertest": "^7.0.0" }, "devDependencies": { "@types/chai": "^4.3.16", "@types/chai-http": "^4.2.4", "@types/express": "^4.17.13", "@types/mocha": "^10.0.7", "@types/node": "^20.14.9", "@types/supertest": "^6.0.2", "chai": "^5.1.1", "mocha": "^10.5.2", "ts-node": "^10.9.2", "typescript": "^4.4.4" }, "keywords": [ "api-rate-limit", "express-api-rate-limit", "nodejs-api-rate-limit", "express", "rate limit", "middleware" ], "repository": { "type": "git", "url": "git+ssh://git@github.com:imirfanul/express-api-rate-limit.git" }, "bugs": { "url": "https://github.com/imirfanul/express-api-rate-limit/issues" }, "homepage": "https://github.com/imirfanul/express-api-rate-limit#readme", "author": "Md Irfanul Alam <irfanulalamtanvir@gmail.com>", "license": "MIT" }