{"id":14968161,"url":"https://github.com/fullhuman/purgecss","last_synced_at":"2025-09-09T20:08:53.789Z","repository":{"id":37385213,"uuid":"95970824","full_name":"FullHuman/purgecss","owner":"FullHuman","description":"Remove unused CSS","archived":false,"fork":false,"pushed_at":"2025-09-04T00:04:35.000Z","size":24808,"stargazers_count":7964,"open_issues_count":61,"forks_count":242,"subscribers_count":54,"default_branch":"main","last_synced_at":"2025-09-07T02:55:20.735Z","etag":null,"topics":["css","optimization-tools","postcss","postcss-plugin","purgecss","rollup-plugin","webpack-plugin"],"latest_commit_sha":null,"homepage":"https://purgecss.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FullHuman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["Ffloriel"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-07-01T15:01:43.000Z","updated_at":"2025-09-06T06:24:12.000Z","dependencies_parsed_at":"2022-07-09T06:16:18.791Z","dependency_job_id":"8100d875-7195-4339-9163-0f42c4ab9645","html_url":"https://github.com/FullHuman/purgecss","commit_stats":{"total_commits":1270,"total_committers":90,"mean_commits":14.11111111111111,"dds":0.6574803149606299,"last_synced_commit":"4b054e4034a1d04bd52cc8658949a9ab5bcd986a"},"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"purl":"pkg:github/FullHuman/purgecss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FullHuman","download_url":"https://codeload.github.com/FullHuman/purgecss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FullHuman%2Fpurgecss/sbom","scorecard":{"id":53371,"data":{"date":"2025-08-11","repo":{"name":"github.com/FullHuman/purgecss","commit":"b27293f36775d6d2a829f516e2adeadbd9bccc6b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/10 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-and-test.yml:1","Warn: no topLevel permission defined: .github/workflows/stale-issues.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/FullHuman/purgecss/build-and-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/FullHuman/purgecss/build-and-test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/FullHuman/purgecss/build-and-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale-issues.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/FullHuman/purgecss/stale-issues.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build-and-test.yml:21","Warn: npmCommand not pinned by hash: .github/workflows/build-and-test.yml:22","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":9,"reason":"SAST tool is not run on all commits -- score normalized to 9","details":["Warn: 20 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T00:10:00.888Z","repository_id":37385213,"created_at":"2025-08-15T00:10:00.888Z","updated_at":"2025-08-15T00:10:00.888Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274356990,"owners_count":25270584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","optimization-tools","postcss","postcss-plugin","purgecss","rollup-plugin","webpack-plugin"],"created_at":"2024-09-24T13:39:24.687Z","updated_at":"2025-09-09T20:08:53.694Z","avatar_url":"https://github.com/FullHuman.png","language":"TypeScript","readme":"# PurgeCSS\n\n[![npm](https://img.shields.io/npm/v/purgecss?style=for-the-badge)](https://www.npmjs.com/package/purgecss)\n![npm](https://img.shields.io/npm/dm/purgecss?style=for-the-badge)\n![GitHub](https://img.shields.io/github/license/FullHuman/purgecss?style=for-the-badge)\n![Dependabot](https://img.shields.io/badge/dependabot-enabled-%23024ea4?style=for-the-badge)\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://i.imgur.com/UEiUiJ0.png\" height=\"200\" width=\"200\" alt=\"PurgeCSS logo\"/\u003e\n\u003c/p\u003e\n\n## What is PurgeCSS?\n\nWhen 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.\n\nThis 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.\n\n## Sponsors 🥰\n\n[\u003cimg src=\"https://avatars0.githubusercontent.com/u/67109815?v=4\" height=\"85\" style=\"margin-right: 10px\"\u003e](https://tailwindcss.com)\n[\u003cimg src=\"https://avatars.githubusercontent.com/u/133211198?v=4\" height=\"85\" style=\"margin-right: 10px\"\u003e](https://www.bairesdev.com/sponsoring-open-source-projects/)\n\n## Documentation\n\nYou can find the PurgeCSS documentation on [this website](https://purgecss.com).\n\n### Table of Contents\n\n#### PurgeCSS\n\n- [Configuration](https://purgecss.com/configuration.html)\n- [Command Line Interface](https://purgecss.com/CLI.html)\n- [Programmatic API](https://purgecss.com/api.html)\n- [Safelisting](https://purgecss.com/safelisting.html)\n- [Extractors](https://purgecss.com/extractors.html)\n- [Comparison](https://purgecss.com/comparison.html)\n\n#### Plugins\n\n- [PostCSS](https://purgecss.com/plugins/postcss.html)\n- [Webpack](https://purgecss.com/plugins/webpack.html)\n- [Gulp](https://purgecss.com/plugins/gulp.html)\n- [Grunt](https://purgecss.com/plugins/grunt.html)\n- [Gatsby](https://purgecss.com/plugins/gatsby.html)\n\n#### Guides\n\n- [Vue.js](https://purgecss.com/guides/vue.html)\n- [Nuxt.js](https://purgecss.com/guides/nuxt.html)\n- [React.js](https://purgecss.com/guides/react.html)\n- [Next.js](https://purgecss.com/guides/next.html)\n- [Razzle](https://purgecss.com/guides/razzle.html)\n- [Hugo](https://purgecss.com/guides/hugo.html)\n\n## Getting Started\n\n#### Installation\n\n```sh\nnpm install purgecss --save-dev\n```\n\n## Usage\n\n```js\nimport { PurgeCSS } from \"purgecss\";\nconst purgeCSSResults = await new PurgeCSS().purge({\n  content: [\"**/*.html\"],\n  css: [\"**/*.css\"],\n});\n```\n\n## Packages\n\nThis repository is a monorepo that we manage using [Lerna](https://github.com/lerna/lerna). That means that we actually publish [several packages](/packages) to npm from the same codebase, including:\n\n| Package                                                      | Version                                                                                     | Description                                |\n| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------- | ------------------------------------------ |\n| [purgecss](/packages/purgecss)                               | ![npm](https://img.shields.io/npm/v/purgecss?style=flat-square)                             | The core of PurgeCSS                       |\n| [postcss-purgecss](/packages/postcss-purgecss)               | ![npm (scoped)](https://img.shields.io/npm/v/@fullhuman/postcss-purgecss?style=flat-square) | PostCSS plugin for PurgeCSS                |\n| [purgecss-webpack-plugin](/packages/purgecss-webpack-plugin) | ![npm](https://img.shields.io/npm/v/purgecss-webpack-plugin?style=flat-square)              | Webpack plugin for PurgeCSS                |\n| [gulp-purgecss](/packages/gulp-purgecss)                     | ![npm](https://img.shields.io/npm/v/gulp-purgecss?style=flat-square)                        | Gulp plugin for PurgeCSS                   |\n| [grunt-purgecss](/packages/grunt-purgecss)                   | ![npm](https://img.shields.io/npm/v/grunt-purgecss?style=flat-square)                       | Grunt plugin for PurgeCSS                  |\n| [rollup-plugin-purgecss](/packages/rollup-plugin-purgecss)   | ![npm](https://img.shields.io/npm/v/rollup-plugin-purgecss?style=flat-square)               | Rollup plugin for PurgeCSS                 |\n| [purgecss-from-html](/packages/purgecss-from-html)           | ![npm](https://img.shields.io/npm/v/purgecss-from-html?style=flat-square)                   | Html extractor for PurgeCSS                |\n| [purgecss-from-pug](/packages/purgecss-from-pug)             | ![npm](https://img.shields.io/npm/v/purgecss-from-pug?style=flat-square)                    | Pug extractor for PurgeCSS                 |\n| [purgecss-with-wordpress](/packages/purgecss-with-wordpress) | ![npm](https://img.shields.io/npm/v/purgecss-with-wordpress?style=flat-square)              | Collection of safelist items for WordPress |\n| [vue-cli-plugin-purgecss](/packages/vue-cli-plugin-purgecss) | ![npm](https://img.shields.io/npm/v/@fullhuman/vue-cli-plugin-purgecss?style=flat-square)   | Vue CLI Plugin for PurgeCSS                |\n","funding_links":["https://github.com/sponsors/Ffloriel"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullhuman%2Fpurgecss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullhuman%2Fpurgecss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullhuman%2Fpurgecss/lists"}