{"id":26818861,"url":"https://github.com/milesbarr/web-minifier","last_synced_at":"2025-03-30T05:15:31.893Z","repository":{"id":262125684,"uuid":"739651465","full_name":"milesbarr/web-minifier","owner":"milesbarr","description":"A Python tool for minifying web assets.","archived":false,"fork":false,"pushed_at":"2025-03-16T15:38:12.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-16T16:33:14.831Z","etag":null,"topics":["css","html","json","minification","minifier","minify","python","python3","svg","web-app-manifest","website","xhtml","xml"],"latest_commit_sha":null,"homepage":"","language":"Python","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/milesbarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-06T05:43:51.000Z","updated_at":"2025-03-16T15:38:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd03a031-67c9-4979-9584-b2252a7e4af6","html_url":"https://github.com/milesbarr/web-minifier","commit_stats":null,"previous_names":["milesbarr/minifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fweb-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fweb-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fweb-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fweb-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milesbarr","download_url":"https://codeload.github.com/milesbarr/web-minifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277361,"owners_count":20751549,"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","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","html","json","minification","minifier","minify","python","python3","svg","web-app-manifest","website","xhtml","xml"],"created_at":"2025-03-30T05:15:31.355Z","updated_at":"2025-03-30T05:15:31.885Z","avatar_url":"https://github.com/milesbarr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Minifier\n\nA Python tool for minifying web assets by removing unnecessary whitespace,\ncomments, and other redundant content while preserving functionality.\n\n## Features\n\nSupports minification of common web file formats:\n\n- HTML (`.html`, `.htm`, `.xhtml`)\n- CSS (`.css`)\n- JSON (`.json`, `.webmanifest`)\n- XML (`.xml`, `.rss`, `.atom`, `.svg`)\n\nAll minification preserves full functionality while reducing file size.\n\n## Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/milesbarr/web-minifier.git\ncd web-minifier\n\n# Install the package\npip install .\n```\n\n## Usage\n\n### Command-Line Interface\n\nMinify a single file:\n```bash\npython -m webminifier -i input.html -o output.html\n```\n\nMinify all supported files in a directory:\n```bash\npython -m webminifier -i src/ -o dist/\n```\n\nRecursively minify files in a directory and its subdirectories:\n```bash\npython -m webminifier -i src/ -o dist/ -r\n```\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesbarr%2Fweb-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilesbarr%2Fweb-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesbarr%2Fweb-minifier/lists"}