{"id":17983506,"url":"https://github.com/techjacker/filecleaner","last_synced_at":"2025-04-04T02:13:02.071Z","repository":{"id":18328092,"uuid":"21507215","full_name":"techjacker/filecleaner","owner":"techjacker","description":"CLI tool that recursively removes large assets from a directory written in Go","archived":false,"fork":false,"pushed_at":"2014-07-04T20:52:12.000Z","size":1036,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T13:37:02.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/techjacker.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}},"created_at":"2014-07-04T20:28:25.000Z","updated_at":"2014-07-04T20:50:51.000Z","dependencies_parsed_at":"2022-08-25T11:51:35.885Z","dependency_job_id":null,"html_url":"https://github.com/techjacker/filecleaner","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/techjacker%2Ffilecleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Ffilecleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Ffilecleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Ffilecleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techjacker","download_url":"https://codeload.github.com/techjacker/filecleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107828,"owners_count":20884797,"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":[],"created_at":"2024-10-29T18:17:25.998Z","updated_at":"2025-04-04T02:13:02.047Z","avatar_url":"https://github.com/techjacker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# filecleaner\n\nClean a directory recursively of large assets:\n\n(png|css|jpg|JPG|gif|GIF|doc|DOC|pdf|PDF|mov|mp4|mpg|wmv|3gp|swf|SWF|eot|svg|ttf|woff)\n\n\n\nInstallation\n------------\n\n```shell\ngo get github.com/techjacker/filecleaner\ngo install github.com/techjacker/filecleaner\n```\n\n\nUsage\n-----\n\n```shell\n$ filecleaner\n\nCleaning dir: (/private/var/folders/2t/srny64c16n7836cdzv7zwv2m0000gp/T/filecleaner)\n\nSuccess!\n\nBefore: 748 kb\nRemoved: 420 kb\nRemaining: 328 kb\nDeleted: 8 files\n```\n\n\nTests\n-----------------------------------------------------\n\n```shell\ngo test\n```\n\n\n\nFind biggest files in dir + add to file removal regex\n-----------------------------------------------------\n\n```shell\nfind . -type f -size +1M -exec du {} \\; | sort -n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Ffilecleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechjacker%2Ffilecleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Ffilecleaner/lists"}