header-sentinel
grade security headers
Grade HTTP security headers using Mozilla HTTP Observatory-style scoring.
- 37/week on npm
- 4★
- MIT
- v1.1.2
- In use on this site
- Security & Headers
npx header-sentinelRead the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)
header-sentinel
From the README
Fail your CI when deployed URLs are missing or misconfigure HTTP security headers — with a specific fix (example header + Nginx/Express/Vercel/Netlify hints) for every problem. Mozilla HTTP Observatory-style letter grades (A+ through F), zero runtime dependencies, Node ≥ 18, JSON and SARIF (GitHub code scanning) output.
npm i -D header-sentinel # or run ad-hoc:
npx header-sentinel https://example.comRelated packages
Security & Headers
- csp-forge
generate a strict CSP
- bundle-secret-guard
scan bundles for secrets
- securitytxt-sentinel
validate security.txt
- sri-sentinel
check subresource integrity