{"id":28227478,"url":"https://github.com/milesbarr/minifier","last_synced_at":"2026-05-11T07:32:10.092Z","repository":{"id":262125684,"uuid":"739651465","full_name":"milesbarr/minifier","owner":"milesbarr","description":"A Python tool for minifying web assets.","archived":false,"fork":false,"pushed_at":"2025-06-07T13:16:23.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-13T10:50:31.597Z","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,"zenodo":null}},"created_at":"2024-01-06T05:43:51.000Z","updated_at":"2025-06-07T13:16:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd03a031-67c9-4979-9584-b2252a7e4af6","html_url":"https://github.com/milesbarr/minifier","commit_stats":null,"previous_names":["milesbarr/minifier","milesbarr/website-minifier","milesbarr/web-minifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/milesbarr/minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fminifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fminifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fminifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fminifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milesbarr","download_url":"https://codeload.github.com/milesbarr/minifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesbarr%2Fminifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266737568,"owners_count":23976389,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","html","json","minification","minifier","minify","python","python3","svg","web-app-manifest","website","xhtml","xml"],"created_at":"2025-05-18T13:15:53.501Z","updated_at":"2026-05-11T07:32:10.088Z","avatar_url":"https://github.com/milesbarr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minifier\n\nA Python tool for minifying website assets by removing unnecessary whitespace,\ncomments, and other redundant content while preserving functionality. Ideal for\nweb developers looking to optimize site performance.\n\n## Features\n\n- Minifies common web file formats: HTML, CSS, JSON, and XML\n- Preserves full functionality while reducing file size\n- Simple command-line interface\n- Can be used as a Python library\n- Fast and lightweight, with minimal dependencies\n\n## Supported Formats\n\n- HTML (`.html`, `.htm`, `.xhtml`)\n- CSS (`.css`)\n- JSON (`.json`, `.webmanifest`)\n- XML (`.xml`, `.rss`, `.atom`, `.svg`)\n\n## Installation\n\nInstall directly from GitHub:\n\n```bash\npip install git+https://github.com/milesbarr/minifier@main\n```\n\nOr clone the repository and install locally:\n\n```bash\ngit clone https://github.com/milesbarr/minifier.git\ncd minifier\npip install .\n```\n\n## Usage\n\n### Command-Line Interface\n\nMinify a file:\n\n```bash\npython -m minifier page.html minified.html\n```\n\n### Python API\n\nMinify a file:\n\n```python\nfrom minifier import minify_file\n\nminify_file(\"page.html\", \"minified.html\")\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%2Fminifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilesbarr%2Fminifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesbarr%2Fminifier/lists"}