Gathering detailed insights and metrics for @fullhuman/postcss-purgecss
Gathering detailed insights and metrics for @fullhuman/postcss-purgecss
Gathering detailed insights and metrics for @fullhuman/postcss-purgecss
Gathering detailed insights and metrics for @fullhuman/postcss-purgecss
npm install @fullhuman/postcss-purgecss
Typescript
Module System
Node Version
NPM Version
TypeScript (81.43%)
CSS (11.98%)
JavaScript (4.44%)
HTML (2.15%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7,942 Stars
1,514 Commits
245 Forks
54 Watchers
19 Branches
76 Contributors
Updated on Jul 16, 2025
Latest Version
7.0.2
Package Id
@fullhuman/postcss-purgecss@7.0.2
Unpacked Size
17.32 kB
Size
5.25 kB
File Count
6
NPM Version
lerna/8.1.8/node@v20.11.0+arm64 (darwin)
Node Version
20.11.0
Published on
Nov 21, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
When you are building a website, chances are that you are using a css framework like Bootstrap, Materializecss, Foundation, etc... But you will only use a small set of the framework and a lot of unused css styles will be included.
This is where PurgeCSS comes into play. PurgeCSS analyzes your content and your css files. Then it matches the selectors used in your css files with the ones in your content files. It removes unused selectors from your css, resulting in smaller css files.
You can find the PurgeCSS documentation on this website.
1npm install purgecss --save-dev
1import { PurgeCSS } from "purgecss"; 2const purgeCSSResults = await new PurgeCSS().purge({ 3 content: ["**/*.html"], 4 css: ["**/*.css"], 5});
This repository is a monorepo that we manage using Lerna. That means that we actually publish several packages to npm from the same codebase, including:
Package | Version | Description |
---|---|---|
purgecss | The core of PurgeCSS | |
postcss-purgecss | PostCSS plugin for PurgeCSS | |
purgecss-webpack-plugin | Webpack plugin for PurgeCSS | |
gulp-purgecss | Gulp plugin for PurgeCSS | |
grunt-purgecss | Grunt plugin for PurgeCSS | |
rollup-plugin-purgecss | Rollup plugin for PurgeCSS | |
purgecss-from-html | Html extractor for PurgeCSS | |
purgecss-from-pug | Pug extractor for PurgeCSS | |
purgecss-with-wordpress | Collection of safelist items for WordPress | |
vue-cli-plugin-purgecss | Vue CLI Plugin for PurgeCSS |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 9
Details
Reason
Found 1/10 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More