{"id":25171729,"url":"https://github.com/basemax/c-minifier","last_synced_at":"2025-05-05T21:10:42.535Z","repository":{"id":151535233,"uuid":"458277456","full_name":"BaseMax/C-Minifier","owner":"BaseMax","description":"CMinifier: A C program to remove comments and minimize the code (remove whitespace and summarize code)","archived":false,"fork":false,"pushed_at":"2023-12-30T19:48:00.000Z","size":55,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-04T21:45:33.324Z","etag":null,"topics":["c","c-minifier","minifier","minifier-c","minifiers","minify","minify-c","minifying"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.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}},"created_at":"2022-02-11T17:20:58.000Z","updated_at":"2024-05-02T23:13:12.000Z","dependencies_parsed_at":"2023-07-10T14:00:20.184Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/C-Minifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FC-Minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FC-Minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FC-Minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FC-Minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/C-Minifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577020,"owners_count":21770721,"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":["c","c-minifier","minifier","minifier-c","minifiers","minify","minify-c","minifying"],"created_at":"2025-02-09T09:21:45.541Z","updated_at":"2025-05-05T21:10:42.516Z","avatar_url":"https://github.com/BaseMax.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C Minifier\n\nA **C program** to remove comments and **minimize** the code (remove whitespace and summarize code)\n\n## Features\n\n- Supporting most **C keywords** and automatically add space after these, such as: `if, else, int, long, float, bool, sizeof`\n- Supporting **macro** statements #include and others\n- Fast and Without any third-party library\n- Without using **Regex**\n- Remove inline C-style comments\n- Remove multiline C-style comments\n- Trim whitespaces\n- Remove empty lines\n\n## Build\n\n```\n$ gcc Minifier.c -o minifier\n```\n\n## Using\n\nIf you are going to minify A C program and get the results in stdout:\n\n```\n./minifier Minifier.c\n```\n\nAnd maybe sometime you need to write the result in another or same file:\n\n```\n./minifier Minifier.c o.c\n```\n\n### TODO\n\n- Adding more C keywords if needed or missed\n- Automatically rename and make short identifier names (A hash-map list to keep original name and new random name and a function to generate a short (and unique) name)\n\nWelcome to help and feel free to contribute and send Pull request.\n\nPlease open a issue if you find a bug and not have time to fix. Thanks in advance.\n\n© Copyright Max Base, 2022\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fc-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fc-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fc-minifier/lists"}