package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "express-rate-limit",
  3. "version": "8.3.2",
  4. "description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.",
  5. "author": {
  6. "name": "Nathan Friedly",
  7. "url": "http://nfriedly.com/"
  8. },
  9. "license": "MIT",
  10. "homepage": "https://github.com/express-rate-limit/express-rate-limit",
  11. "repository": {
  12. "type": "git",
  13. "url": "git+https://github.com/express-rate-limit/express-rate-limit.git"
  14. },
  15. "funding": "https://github.com/sponsors/express-rate-limit",
  16. "keywords": [
  17. "express-rate-limit",
  18. "express",
  19. "rate",
  20. "limit",
  21. "ratelimit",
  22. "rate-limit",
  23. "middleware",
  24. "ip",
  25. "auth",
  26. "authorization",
  27. "security",
  28. "brute",
  29. "force",
  30. "bruteforce",
  31. "brute-force",
  32. "attack"
  33. ],
  34. "type": "module",
  35. "exports": {
  36. ".": {
  37. "import": {
  38. "types": "./dist/index.d.mts",
  39. "default": "./dist/index.mjs"
  40. },
  41. "require": {
  42. "types": "./dist/index.d.cts",
  43. "default": "./dist/index.cjs"
  44. }
  45. }
  46. },
  47. "main": "./dist/index.cjs",
  48. "module": "./dist/index.mjs",
  49. "types": "./dist/index.d.ts",
  50. "files": [
  51. "dist/",
  52. "tsconfig.json"
  53. ],
  54. "engines": {
  55. "node": ">= 16"
  56. },
  57. "scripts": {
  58. "clean": "del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz",
  59. "build:cjs": "esbuild --packages=external --platform=node --bundle --target=es2022 --format=cjs --outfile=dist/index.cjs --footer:js=\"module.exports = Object.assign(rateLimit, module.exports);\" source/index.ts",
  60. "build:esm": "esbuild --packages=external --platform=node --bundle --target=es2022 --format=esm --outfile=dist/index.mjs source/index.ts",
  61. "build:types": "dts-bundle-generator --out-file=dist/index.d.ts source/index.ts && cp dist/index.d.ts dist/index.d.cts && cp dist/index.d.ts dist/index.d.mts",
  62. "compile": "run-s clean build:*",
  63. "docs": "cd docs && mintlify dev",
  64. "lint:code": "biome check",
  65. "lint:docs": "prettier --check docs/ *.md",
  66. "lint": "run-s lint:*",
  67. "format:code": "biome check --write",
  68. "format:docs": "prettier --write docs/ *.md",
  69. "format": "run-s format:*",
  70. "test:lib": "jest",
  71. "test:ext": "cd test/external/ && bash run-all-tests",
  72. "test": "run-s lint test:lib",
  73. "pre-commit": "lint-staged",
  74. "prepare": "run-s compile && husky"
  75. },
  76. "dependencies": {
  77. "ip-address": "10.1.0"
  78. },
  79. "peerDependencies": {
  80. "express": ">= 4.11"
  81. },
  82. "devDependencies": {
  83. "@biomejs/biome": "2.4.6",
  84. "@express-rate-limit/prettier": "1.1.1",
  85. "@express-rate-limit/tsconfig": "1.0.2",
  86. "@jest/globals": "30.3.0",
  87. "@types/express": "5.0.6",
  88. "@types/jest": "30.0.0",
  89. "@types/node": "25.5.0",
  90. "@types/supertest": "7.2.0",
  91. "del-cli": "7.0.0",
  92. "dts-bundle-generator": "8.1.2",
  93. "esbuild": "0.27.4",
  94. "express": "5.2.1",
  95. "husky": "9.1.7",
  96. "jest": "30.3.0",
  97. "lint-staged": "16.4.0",
  98. "mintlify": "4.2.446",
  99. "npm-run-all": "4.1.5",
  100. "prettier": "3.8.1",
  101. "ratelimit-header-parser": "0.1.0",
  102. "supertest": "7.2.2",
  103. "ts-jest": "29.4.6",
  104. "ts-node": "10.9.2",
  105. "typescript": "5.9.3"
  106. },
  107. "prettier": "@express-rate-limit/prettier",
  108. "lint-staged": {
  109. "*.{js,ts,json}": "biome check --write",
  110. "*.{md,yaml}": "prettier --write"
  111. }
  112. }