Skip to content
JS
Package

content-security-policy-builder

Build Content Security Policy directives.

v2.3.0, 28 Mar 2025MITESM + CommonJSTypes: BundledSecurity
$ npm install content-security-policy-builder

Key numbers

As of 25 Sept 2026
Weekly downloads
483.5k
+24% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v2.3.0
GitHub stars
36
8 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 679.9k (4 Aug 2026)Low 216.2k (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.

483,529 downloads last week, 2,291,555 in the last month. The 12-month change of +24% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
09 in total
Latest version
2.3.0, 28 Mar 20251 year ago
First published
10 Sept 2015
Last push to GitHub
13 Aug 202642 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
1
Dependents on npm
24

Major versions

  1. v2 first release 2.0.0, 23 Jan 2018
  2. v1 first release 1.0.0, 18 Dec 2015
  3. v0 first release 0.1.0, 10 Sept 2015

Recent releases

VersionPublished
2.3.028 Mar 2025
2.2.025 Apr 2024
2.1.123 Mar 2022
2.1.013 Jun 2019
2.0.023 Jan 2018
1.1.031 Jul 2016
1.0.018 Dec 2015
0.2.018 Sept 2015
0.1.010 Sept 2015
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.0.0
Runtimes
-
Unpacked size (npm)
6.8 kB
Dependencies (0)
None
npm install content-security-policy-builder
  • jsDelivrhttps://cdn.jsdelivr.net/npm/content-security-policy-builder@2.3.0/
  • unpkghttps://unpkg.com/content-security-policy-builder@2.3.0/
  • esm.shhttps://esm.sh/content-security-policy-builder@2.3.0
PackageWeekly downloadsGzipLast releaseModuleComparison
csp-header114.8k-21 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.