{
  "name": "@exortek/security",
  "version": "1.3.5",
  "description": "Framework-agnostic defensive HTTP layer for Node.js 22+ — CSRF, sliding/fixed/token-bucket/leaky-bucket rate limiting (memory / Redis / custom stores, plus withBan escalation), helmet-style headers (CSP, HSTS, COOP/COEP/CORP, Referrer, Permissions), CORS, open-redirect guard, and 17 focused helpers (client-IP, CSP nonce, slow-down, body limit, timeout, HPP, NoSQL sanitizer, prototype-safe JSON parse, prototype freezer, path traversal, filename sanitizer, honeypot, webhook signature verify, bearer parser, origin check, constant-time compare, CSP report parser). Adapters for Fastify and Express.",
  "type": "module",
  "sideEffects": false,
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.mjs",
      "require": "./dist/index.cjs"
    },
    "./csrf": {
      "types": "./dist/csrf/index.d.ts",
      "import": "./dist/csrf.mjs",
      "require": "./dist/csrf.cjs"
    },
    "./rate-limit": {
      "types": "./dist/rate-limit/index.d.ts",
      "import": "./dist/rate-limit.mjs",
      "require": "./dist/rate-limit.cjs"
    },
    "./headers": {
      "types": "./dist/headers/index.d.ts",
      "import": "./dist/headers.mjs",
      "require": "./dist/headers.cjs"
    },
    "./cors": {
      "types": "./dist/cors/index.d.ts",
      "import": "./dist/cors.mjs",
      "require": "./dist/cors.cjs"
    },
    "./redirect": {
      "types": "./dist/redirect/index.d.ts",
      "import": "./dist/redirect.mjs",
      "require": "./dist/redirect.cjs"
    },
    "./fastify": {
      "types": "./dist/middleware/fastify.d.ts",
      "import": "./dist/fastify.mjs",
      "require": "./dist/fastify.cjs"
    },
    "./express": {
      "types": "./dist/middleware/express.d.ts",
      "import": "./dist/express.mjs",
      "require": "./dist/express.cjs"
    }
  },
  "files": [
    "dist",
    "/README.md",
    "/CHANGELOG.md",
    "/LICENSE"
  ],
  "scripts": {
    "build": "rm -rf dist tsconfig.tsbuildinfo && rollup -c rollup.config.js && tsc -p tsconfig.json && rollup -c ../../rollup.dts.config.mjs",
    "build:watch": "rollup -c rollup.config.js --watch",
    "build:types": "tsc -p tsconfig.json",
    "typecheck": "tsc -p tsconfig.json --noEmit",
    "test": "node --test 'tests/**/*.test.js'",
    "test:coverage": "node --test --experimental-test-coverage 'tests/**/*.test.js'",
    "clean": "rm -rf dist tsconfig.tsbuildinfo",
    "prepack": "cp ../../LICENSE ./LICENSE"
  },
  "keywords": [
    "backend",
    "express",
    "fastify",
    "auth",
    "security",
    "csrf",
    "rate-limit",
    "helmet",
    "headers",
    "csp",
    "hsts",
    "cors",
    "safe-redirect",
    "open-redirect",
    "slow-down",
    "brute-force",
    "hpp",
    "nosql-injection",
    "prototype-pollution",
    "path-traversal",
    "honeypot",
    "webhook",
    "bearer",
    "node-crypto"
  ],
  "license": "MIT",
  "homepage": "https://github.com/ExorTek/auth/tree/master/packages/security#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ExorTek/auth.git",
    "directory": "packages/security"
  },
  "bugs": {
    "url": "https://github.com/ExorTek/auth/issues"
  },
  "peerDependencies": {
    "express": ">=4",
    "fastify": ">=4"
  },
  "peerDependenciesMeta": {
    "express": {
      "optional": true
    },
    "fastify": {
      "optional": true
    }
  },
  "engines": {
    "node": ">=22.0.0"
  },
  "publishConfig": {
    "access": "public"
  }
}