{"id":51140342,"url":"https://github.com/softonus-io/prettier-plugin-whitespace-remover","last_synced_at":"2026-06-25T22:02:02.083Z","repository":{"id":233104363,"uuid":"785859705","full_name":"softonus-io/prettier-plugin-whitespace-remover","owner":"softonus-io","description":"A Prettier plugin that removes excessive whitespace from class and className attributes in HTML, Vue.js, React, and Angular, helping to improve code readability and maintain consistency.","archived":false,"fork":false,"pushed_at":"2024-11-22T19:25:57.000Z","size":16,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T01:45:48.275Z","etag":null,"topics":["prettier","prettier-eslint","prettier-plugin","prettier-plugin-tailwindcss","prettierconfig","prettierrc","whitespace","whitespace-removal"],"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-12T19:26:06.000Z","updated_at":"2024-11-22T19:55:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"186d4656-592a-4431-8ea0-5887e1b714e9","html_url":"https://github.com/softonus-io/prettier-plugin-whitespace-remover","commit_stats":null,"previous_names":["softonus-io/prettier-plugin-whitespace-remover"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/softonus-io/prettier-plugin-whitespace-remover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-whitespace-remover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-whitespace-remover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-whitespace-remover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-whitespace-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-whitespace-remover/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonus-io%2Fprettier-plugin-whitespace-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":["prettier","prettier-eslint","prettier-plugin","prettier-plugin-tailwindcss","prettierconfig","prettierrc","whitespace","whitespace-removal"],"created_at":"2026-06-25T22:02:01.517Z","updated_at":"2026-06-25T22:02:02.077Z","avatar_url":"https://github.com/softonus-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Prettier Plugin: Whitespace Remover\n\nA powerful Prettier plugin designed to remove unnecessary whitespaces from class attributes (`class` and `className`) across **Vue.js**, **Angular**, **React**, **Next**, **Nuxt** and **HTML** projects.\n\nThis plugin ensures that class names are clean and consistently formatted by trimming excess spaces and standardizing them, improving the overall code quality.\n\n---\n\n## 🗂 Installation\n\nInstall the plugin for your project using one of the following package managers:\n\n**Bun:**\n\n```bash\nbun add -D @softonus/prettier-plugin-whitespace-remover\n```\n\n**Yarn:**\n\n```bash\nyarn add -D @softonus/prettier-plugin-whitespace-remover\n```\n\n**npm:**\n\n```bash\nnpm install --save-dev @softonus/prettier-plugin-whitespace-remover\n```\n\n---\n\n## 🔨 Usage\n\n1. **Create a `.prettierrc` file** (if you don’t already have one) in your project’s root directory.\n\n2. **Add the plugin to your Prettier configuration**:\n\n```json\n{\n  \"plugins\": [\"@softonus/prettier-plugin-whitespace-remover\"]\n}\n```\n\nThis will automatically apply the plugin to clean up whitespace in your **React**, **Vue.js**, **Angular**, **Next**, **Nuxt** and **HTML** projects.\n\n---\n\n## 🌐 Supported Frameworks\n\n- **React** \u0026 **Next.js**: Cleans up `className` attributes.\n- **Vue.js**: Cleans up `class` attributes within `.vue` files.\n- **Angular**: Cleans up `class` attributes in HTML and Angular templates.\n- **Plain HTML**: Cleans up `class` attributes in regular HTML files.\n\n---\n\n## ⚡ Features\n\n- **Cleans up class names**: Removes unnecessary spaces and trims multiple spaces into a single space.\n- **Works across all major frameworks**: Supports React, Vue, Angular, Next.js, and plain HTML.\n- **Zero configuration**: Simply add the plugin and start formatting.\n\n---\n\n## 📝 Example\n\n### Before Prettier:\n\n```html\n\u003cdiv class=\"    btn  btn-primary  \"\u003e\n  Hello World\n\u003c/div\u003e\n```\n\n### After Prettier:\n\n```html\n\u003cdiv class=\"btn btn-primary\"\u003e\n  Hello World\n\u003c/div\u003e\n```\n\n---\n\n## 📨 Contact\n\nFor inquiries or suggestions, reach out to me at [ebo@softonus.com](mailto:ebo@softonus.com).\n\n---\n\n## 🤝 Contributions\n\nContributions are welcome! If you have any improvements or fixes, feel free to open an issue or create a pull request.\n\n---\n\n## 🏷️ License\n\nDistributed under the MIT License. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonus-io%2Fprettier-plugin-whitespace-remover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftonus-io%2Fprettier-plugin-whitespace-remover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonus-io%2Fprettier-plugin-whitespace-remover/lists"}