Skip to content
JS
Package

csp-html-webpack-plugin

A plugin which, when combined with HTMLWebpackPlugin, adds CSP tags to the HTML output

v5.1.0, 12 Jan 2021MITCommonJSTypes: NoneBundler plugins and loaders
$ npm install csp-html-webpack-plugin

Key numbers

As of 25 Sept 2026
Weekly downloads
29.7k
-35% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
5 years ago
v5.1.0
GitHub stars
172
40 forks
Open issues / PRs
12 / 16
Contributors
-
Commits, last 52 weeks
3

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60k80kSept 2025Mar 2026Sept 2026High 61.2k (25 Nov 2025)Low 18.8k (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

29,726 downloads last week, 150,789 in the last month. The 12-month change of -35% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.1.0, 12 Jan 20215 years ago
First published
-
Last push to GitHub
2 Jun 2026114 days before the snapshot
Repository archived
No
Open issues
12
Open pull requests
16
Commits, last 52 weeks
3
Dependents on npm
15

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
71 kB
Dependencies (2)
lodashcheerio
Peer dependencies (2)
webpackhtml-webpack-plugin
npm install csp-html-webpack-plugin
  • jsDelivrhttps://cdn.jsdelivr.net/npm/csp-html-webpack-plugin@5.1.0/
  • unpkghttps://unpkg.com/csp-html-webpack-plugin@5.1.0/
  • esm.shhttps://esm.sh/csp-html-webpack-plugin@5.1.0
PackageWeekly downloadsGzipLast releaseModuleComparison
vuepress-html-webpack-plugin36.8k-8 years agoCommonJS-
duplicate-package-checker-webpack-plugin113.2k-8 years agoCommonJS-
wrapper-webpack-plugin21.9k-4 years agoCommonJS-
duplicate-dependencies-webpack-plugin11.6k-4 years agoCommonJS-
html-render-webpack-plugin5k-3 years agoCommonJS-
webpack-subresource-integrity3.9m-3 years agoESM + CommonJS-
clean-webpack-plugin1.6m-5 years agoCommonJS-
warnings-to-errors-webpack-plugin67.9k-4 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.