express-limiter-pro
Version:
A TypeScript library for safe display and sanitization to prevent XSS attacks.
123 lines • 2.95 kB
JSON
{
"name": "express-limiter-pro",
"version": "0.0.6",
"description": "A TypeScript library for safe display and sanitization to prevent XSS attacks.",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md",
"LICENSE"
],
"keywords": [
"express",
"rate-limit",
"express-rate-limit",
"api-security",
"brute-force-protection",
"ddos-protection",
"throttle",
"request-limiter",
"authentication-security",
"login-protection",
"api-throttling",
"2fa-security",
"middleware",
"nodejs-security"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/MindaugasBaltrunas/rate-limits.git"
},
"bugs": {
"url": "https://github.com/MindaugasBaltrunas/rate-limits/issues"
},
"homepage": "https://github.com/MindaugasBaltrunas/rate-limits#readme",
"engines": {
"node": ">=14.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.8",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.15.32",
"@types/supertest": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"eslint": "^8.54.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^30.0.5",
"size-limit": "^11.0.0",
"supertest": "^7.1.4",
"ts-jest": "^29.1.1",
"tsup": "^8.5.0",
"typescript": "^5.8.3"
},
"peerDependencies": {
"express": "^4.17.0"
},
"peerDependenciesMeta": {
"express": {
"optional": true
}
},
"size-limit": [
{
"path": "dist/index.js",
"limit": "50 KB"
},
{
"path": "dist/index.mjs",
"limit": "50 KB"
}
],
"jest": {
"preset": "ts-jest",
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"src/**/*.ts",
"!src/**/*.d.ts"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "error"
}
},
"dependencies": {
"@types/express": "^5.0.3",
"@types/jsonwebtoken": "^9.0.10",
"cca-entities": "^0.2.20",
"express-rate-limit": "^8.0.1",
"jsonwebtoken": "^9.0.2"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --metafile --clean",
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"type-check": "tsc --noEmit",
"size": "size-limit"
}
}