UNPKG

@ladjs/koa-simple-ratelimit

Version:

Fork of koa-simple-ratelimit with better tests and options. Simple Rate limiter middleware for koa v2

79 lines (78 loc) 1.77 kB
{ "name": "@ladjs/koa-simple-ratelimit", "description": "Fork of koa-simple-ratelimit with better tests and options. Simple Rate limiter middleware for koa v2", "version": "4.1.1", "author": "Scott Cooper <scttcper@gmail.com>", "ava": { "serial": true }, "bugs": { "url": "https://github.com/ladjs/koa-simple-ratelimit/issues" }, "contributors": [ "Scott Cooper <scttcper@gmail.com>" ], "dependencies": { "ms": "^2.1.3", "multimatch": "5" }, "devDependencies": { "@commitlint/cli": "^17.2.0", "@commitlint/config-conventional": "^17.2.0", "ava": "^5.0.1", "cross-env": "^7.0.3", "delay": "^5.0.0", "eslint": "^8.27.0", "eslint-config-xo-lass": "^2.0.1", "fixpack": "^4.0.0", "husky": "^8.0.2", "ioredis": "^5.2.4", "ioredis-mock": "^8.2.2", "koa": "^2.13.4", "lint-staged": "13.0.3", "nyc": "^15.1.0", "remark-cli": "^11.0.0", "remark-preset-github": "^4.0.4", "sinon": "^14.0.2", "supertest": "^6.3.1", "xo": "^0.52.4" }, "engines": { "node": ">=14" }, "files": [ "index.js" ], "homepage": "https://github.com/ladjs/koa-simple-ratelimit", "keywords": [ "abuse", "api", "ddos", "http", "koa", "limit", "limiter", "middleware", "protection", "rate", "ratelimit", "ratelimiter", "request", "spam" ], "license": "MIT", "main": "index.js", "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "https://github.com/ladjs/koa-simple-ratelimit" }, "scripts": { "lint": "xo --fix && remark . -qfo && fixpack", "prepare": "husky install", "pretest": "npm run lint", "test": "cross-env NODE_ENV=test nyc ava" } }