Skip to content
JS
Package

purgecss

Remove unused css selectors

v8.0.0, 24 Jan 2026MITESM + CommonJSTypes: BundledCSS-in-JS and styling
$ npm install purgecss

Key numbers

As of 25 Sept 2026
Weekly downloads
1m
+36% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
7 months ago
v8.0.0
GitHub stars
8.1k
243 forks
Open issues / PRs
35 / 33
Contributors
-
Commits, last 52 weeks
84

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.4m (24 Mar 2026)Low 502.3k (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.

1,009,095 downloads last week, 4,662,584 in the last month. The 12-month change of +36% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
160 in total
Latest version
8.0.0, 24 Jan 20267 months ago
First published
8 Jul 2017
Last push to GitHub
20 Aug 202635 days before the snapshot
Repository archived
No
Open issues
35
Open pull requests
33
Commits, last 52 weeks
84
Dependents on npm
-

Major versions

  1. v8 first release 8.0.0, 24 Jan 2026
  2. v7 first release 7.0.2, 21 Nov 2024
  3. v6 first release 6.0.0, 29 Mar 2024
  4. v5 first release 5.0.0, 13 Sept 2022
  5. v4 first release 4.0.0, 17 Jan 2021
  6. v3 first release 3.0.0, 20 Sept 2020
  7. v2 first release 2.0.2, 18 Jan 2020
  8. v1 first release 1.0.0, 22 May 2018
  9. v0 first release 0.1.0, 8 Jul 2017

Recent releases

VersionPublished
8.0.024 Jan 2026
7.0.221 Nov 2024
6.0.029 Mar 2024
5.0.013 Sept 2022
4.1.329 Nov 2021
4.1.229 Nov 2021
4.1.128 Nov 2021
4.1.028 Nov 2021
4.0.320 Mar 2021
4.0.221 Feb 2021
4.0.121 Feb 2021
4.0.017 Jan 2021
3.1.315 Dec 2020
3.1.014 Dec 2020
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
133 kB
Dependencies (4)
postcsscommanderfast-globpostcss-selector-parser
npm install purgecss
  • jsDelivrhttps://cdn.jsdelivr.net/npm/purgecss@8.0.0/
  • unpkghttps://unpkg.com/purgecss@8.0.0/
  • esm.shhttps://esm.sh/purgecss@8.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
postcss-clean21.6k-5 years agoESM + CommonJS-
rollup-plugin-styles62.3k-4 years agoESM + CommonJS-
postcss-sort-media-queries1m-2 months agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.