{"id":51140170,"url":"https://github.com/softonus-io/prettier-plugin-duplicate-remover","last_synced_at":"2026-06-25T22:00:43.529Z","repository":{"id":233104531,"uuid":"785875925","full_name":"softonus-io/prettier-plugin-duplicate-remover","owner":"softonus-io","description":"A Prettier plugin that removes duplicate class names in class and className attributes, ensuring cleaner, more efficient code in frontend projects like React, Vue.js, and Angular.","archived":false,"fork":false,"pushed_at":"2024-11-22T20:00:45.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-29T06:41:25.584Z","etag":null,"topics":["duplicate","duplicate-detection","duplicate-removal","duplicates","duplicates-removal","prettier","prettier-config","prettier-eslint","prettier-plugin","prettier-plugin-tailwindcss","prettierconfig","prettierrc"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softonus-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-12T20:17:56.000Z","updated_at":"2024-11-22T20:00:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6aefc1f-1814-4406-91d6-0cbb668c76d9","html_url":"https://github.com/softonus-io/prettier-plugin-duplicate-remover","commit_stats":null,"previous_names":["softonus-io/prettier-plugin-duplicate-remover"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/softonus-io/prettier-plugin-duplicate-remover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-duplicate-remover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-duplicate-remover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-duplicate-remover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-duplicate-remover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softonus-io","download_url":"https://codeload.github.com/softonus-io/prettier-plugin-duplicate-remover/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-duplicate-remover/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34793951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"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":["duplicate","duplicate-detection","duplicate-removal","duplicates","duplicates-removal","prettier","prettier-config","prettier-eslint","prettier-plugin","prettier-plugin-tailwindcss","prettierconfig","prettierrc"],"created_at":"2026-06-25T22:00:29.472Z","updated_at":"2026-06-25T22:00:43.521Z","avatar_url":"https://github.com/softonus-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Prettier Plugin: Duplicate Remover\n\nPrettier plugin that removes duplicate class names from `className` (JSX/TSX/React), `class` (HTML, Angular, Vue), and similar attributes in your code, ensuring clean and consistent class usage.\n\nSupports the following:\n- React (JSX/TSX) – `className`\n- Angular – `class`\n- Vue – `class`\n- HTML – `class`\n  \nBy eliminating duplicate class names, this plugin helps maintain cleaner, more efficient markup.\n\n## 🗂 Install\n\nYou can install the plugin using any of the following package managers:\n\n### Bun:\n\n```bash\nbun add -D @softonus/prettier-plugin-duplicate-remover\n```\n\n### Yarn:\n\n```bash\nyarn add -D @softonus/prettier-plugin-duplicate-remover\n```\n\n### Npm:\n\n```bash\nnpm install --save-dev @softonus/prettier-plugin-duplicate-remover\n```\n\n## 🔨 Usage\n\nOnce installed, you need to add this plugin to your Prettier configuration file (`.prettierrc`).\n\n### Steps:\n\n1. **Create a `.prettierrc` file** in your project's root directory (if you don't have one).\n2. **Add the plugin configuration** to your `.prettierrc` file:\n\n```json\n{\n  \"plugins\": [\"@softonus/prettier-plugin-duplicate-remover\"]\n}\n```\n\nThis will enable the plugin, and Prettier will automatically remove duplicate class names during formatting.\n\n### Example:\n\nBefore formatting:\n\n```html\n\u003cdiv class=\"btn btn btn-primary btn btn-large\"\u003eButton\u003c/div\u003e\n```\n\nAfter formatting:\n\n```html\n\u003cdiv class=\"btn btn-primary btn-large\"\u003eButton\u003c/div\u003e\n```\n\n## 📝 Features\n\n- **React (JSX/TSX)**: Removes duplicate `className` attributes.\n- **Angular, Vue, HTML**: Removes duplicate `class` attributes.\n- **Ensures clean and consistent markup**: Prevents unnecessary repetition of class names.\n\n## 🏗️ Supported Languages\n\n- **React** (`.jsx`, `.tsx`) – Handles `className`\n- **Vue** (`.vue`) – Handles `class`\n- **Angular** (`.html`, `.ts`) – Handles `class`\n- **HTML** (`.html`) – Handles `class`\n\n## 🏆 Contributing\n\nIf you’d like to contribute to this project, feel free to fork it, make changes, and open a pull request. Your contributions are always welcome!\n\n## 📨 Contact\n\nFor any questions or issues, please contact me at:  \n**ebo@softonus.com**\n\n---\n\n### 💡 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonus-io%2Fprettier-plugin-duplicate-remover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftonus-io%2Fprettier-plugin-duplicate-remover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonus-io%2Fprettier-plugin-duplicate-remover/lists"}