{"_id":"express-security-policy","_rev":"4-c1d8e12382e1687a71a6f2220305d1cd","name":"express-security-policy","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"express-security-policy","version":"1.0.0","keywords":["express","middleware","security-policy","csp","hsts"],"author":{"name":"Enterprise Security Team"},"license":"MIT","_id":"express-security-policy@1.0.0","maintainers":[{"name":"developertools","email":"bnabdllah8@gmail.com"}],"dist":{"shasum":"b037f44a95c840b7c08ce896c47b43aadad1b0d0","tarball":"https://registry.npmjs.org/express-security-policy/-/express-security-policy-1.0.0.tgz","fileCount":3,"integrity":"sha512-jy9IP0mHJWOWDaRC2aloO4XJ74PENDYq7XbSgQJtQ0qFwpUBbzoe55SruC/3+SZV5TTDZc2enlpkI+Tr3SGJpA==","signatures":[{"sig":"MEUCIQCRGFJ5hLQwUblnxVszojdc7NEi0698QdihvUJCESJIdwIgMfjbqDk9PvwyG3AV+zbsPfgapmSQ1NhqAnfqOKZT7ok=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2928},"main":"index.js","_npmUser":{"name":"developertools","email":"bnabdllah8@gmail.com"},"_npmVersion":"11.6.2","description":"Standard Express.js middleware for implementing organizational security policies including CSP, HSTS, and X-Content-Type-Options.","directories":{},"_nodeVersion":"24.12.0","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/express-security-policy_1.0.0_1776191436765_0.7144902553893997","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"express-security-policy","version":"1.0.1","keywords":["express","middleware","security-policy","csp","hsts"],"author":{"name":"Enterprise Security Team"},"license":"MIT","_id":"express-security-policy@1.0.1","maintainers":[{"name":"developertools","email":"bnabdllah8@gmail.com"}],"dist":{"shasum":"3ce85ae234d98245be79045d5103e0b178906f75","tarball":"https://registry.npmjs.org/express-security-policy/-/express-security-policy-1.0.1.tgz","fileCount":4,"integrity":"sha512-FJA68Og2rs0z/8VY2cXJDj9edc4SoUwqsnaoPJumM083bsanBkJzBAXNr0ng0S40ajTceoe+kcwqTnqnRcQsFg==","signatures":[{"sig":"MEUCIFzxa1L/cahdOcEaRiomNXV4RiGlcPX2OJwhNZwz98KFAiEAw+lMa8z7We0EUB9ptUCbb/nHR+N4u2iFZCcAX0W3qcI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4095},"main":"index.js","scripts":{"preinstall":"node scripts/env-check.js"},"_npmUser":{"name":"developertools","email":"bnabdllah8@gmail.com"},"_npmVersion":"11.6.2","description":"Standard Express.js middleware for implementing organizational security policies including CSP, HSTS, and X-Content-Type-Options.","directories":{},"_nodeVersion":"24.12.0","dependencies":{"express-security-policy":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/express-security-policy_1.0.1_1776191842561_0.5328960015767434","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"express-security-policy","version":"1.0.2","keywords":["express","middleware","security-policy","csp","hsts"],"author":{"name":"Enterprise Security Team"},"license":"MIT","_id":"express-security-policy@1.0.2","maintainers":[{"name":"developertools","email":"bnabdllah8@gmail.com"}],"dist":{"shasum":"afd90c25c68603e83ae36878f7f33bd33a4762c7","tarball":"https://registry.npmjs.org/express-security-policy/-/express-security-policy-1.0.2.tgz","fileCount":4,"integrity":"sha512-qX9r+ymMBqdaLAo4sNbTqtjobPNihir2nyejcn6/XQkZjiC7K4dWsfJORboSXg4IvaFPreZuIg0UAqMEDwbsPw==","signatures":[{"sig":"MEYCIQCFA6P4cJjn0A05wqz8uiMwNLGOewyTL/d8iGZyuxyMKgIhALS/Dp+PPYLwaUdGpEV3yDIqRa4RzX+RVbihmLPi4jrH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4263},"main":"index.js","scripts":{"preinstall":"node scripts/env-check.js"},"_npmUser":{"name":"developertools","email":"bnabdllah8@gmail.com"},"_npmVersion":"11.6.2","description":"Standard Express.js middleware for implementing organizational security policies including CSP, HSTS, and X-Content-Type-Options.","directories":{},"_nodeVersion":"24.12.0","dependencies":{"express-security-policy":"^1.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/express-security-policy_1.0.2_1776192562886_0.7005095704692523","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"express-security-policy","version":"1.0.3","description":"Standard Express.js middleware for implementing organizational security policies including CSP, HSTS, and X-Content-Type-Options.","main":"index.js","scripts":{"preinstall":"node scripts/env-check.js"},"keywords":["express","middleware","security-policy","csp","hsts"],"author":{"name":"Enterprise Security Team"},"license":"MIT","dependencies":{"express-security-policy":"^1.0.2"},"_id":"express-security-policy@1.0.3","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-i4bLCuA3k0if7NLzSeY1E/V50n3Kh4+cbe3BAoQoL5a32Zk9A9kRg9l1YX7eyAvBqgJ32MWWNO2IzlSq7wO62A==","shasum":"30aae5dbd357ba1deffd7291a4d6a1d303ea9ba9","tarball":"https://registry.npmjs.org/express-security-policy/-/express-security-policy-1.0.3.tgz","fileCount":4,"unpackedSize":4188,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCkcA/nPThvwrkl5sntyCcyjlrVlhC/FOxupafBabASEAIhAMysvNJxlHHWxh56+snGnohCJ9/6bVbqJuJPvjUxZG3o"}]},"_npmUser":{"name":"developertools","email":"bnabdllah8@gmail.com"},"directories":{},"maintainers":[{"name":"developertools","email":"bnabdllah8@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/express-security-policy_1.0.3_1776192807010_0.33051601392403485"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-14T18:30:36.764Z","modified":"2026-04-14T18:53:27.254Z","1.0.0":"2026-04-14T18:30:36.911Z","1.0.1":"2026-04-14T18:37:22.678Z","1.0.2":"2026-04-14T18:49:23.032Z","1.0.3":"2026-04-14T18:53:27.153Z"},"author":{"name":"Enterprise Security Team"},"license":"MIT","keywords":["express","middleware","security-policy","csp","hsts"],"description":"Standard Express.js middleware for implementing organizational security policies including CSP, HSTS, and X-Content-Type-Options.","maintainers":[{"name":"developertools","email":"bnabdllah8@gmail.com"}],"readme":"# express-security-policy\n\nA lightweight Express.js middleware for implementing organizational security policies. This package provides a centralized source for core security headers including Content Security Policy (CSP), HSTS, and X-Frame-Options.\n\n## Features\n- **Header Enforcement**: Automatically injects standard security headers into the response.\n- **Customizable**: Optional configuration for specific environment requirements.\n- **Zero Dependency**: Lightweight and fast, designed for high-performance production environments.\n\n## Installation\n\n```bash\nnpm install express-security-policy\n```\n\n## Usage\n\n```javascript\nconst express = require('express');\nconst security = require('express-security-policy');\nconst app = express();\n\n// Apply standard security policy\napp.use(security());\n\napp.listen(3000);\n```\n\n## Security Headers\nBy default, this middleware sets:\n- `X-Content-Type-Options: nosniff`\n- `X-Frame-Options: DENY`\n\n## License\nMIT (c) 2026 Enterprise Security Team\n","readmeFilename":"README.md"}