Skip to content
JS
Package

csp-header

Content-Security-Policy header generator

v6.4.0, 4 Sept 2026WTFPLESM + CommonJSTypes: BundledSecurity
$ npm install csp-header

Key numbers

As of 25 Sept 2026
Weekly downloads
114.8k
+211% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
21 days ago
v6.4.0
GitHub stars
25
10 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
17

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 232.9k (18 Aug 2026)Low 23.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

114,797 downloads last week, 697,158 in the last month. The 12-month change of +211% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
6.4.0, 4 Sept 202621 days ago
First published
-
Last push to GitHub
4 Sept 202621 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
17
Dependents on npm
15

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
57 kB
Dependencies (0)
None
npm install csp-header
  • jsDelivrhttps://cdn.jsdelivr.net/npm/csp-header@6.4.0/
  • unpkghttps://unpkg.com/csp-header@6.4.0/
  • esm.shhttps://esm.sh/csp-header@6.4.0
PackageWeekly downloadsGzipLast releaseModuleComparison
helmet-csp416.3k-2 months agoCommonJS-
vite-plugin-csp-guard17.9k-5 months agoESM only-
content-security-policy-parser544.1k-2 years agoESM + CommonJS-
content-security-policy-builder483.5k-1 year agoESM + CommonJS-
next-secure-headers71.8k-5 years agoCommonJS-
csp-toolkit17.3k-5 months agoESM + CommonJS-
@doyensec/csp-evaluator5.7k-7 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.