{"id":16473661,"url":"https://github.com/guumaster/dir-cleaner","last_synced_at":"2025-03-01T10:31:17.797Z","repository":{"id":64303296,"uuid":"244580076","full_name":"guumaster/dir-cleaner","owner":"guumaster","description":"A golang CLI to scan and clean directories (mainly node_modules)","archived":false,"fork":false,"pushed_at":"2020-03-07T19:37:38.000Z","size":3189,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T09:42:48.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/guumaster.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":"2020-03-03T08:22:35.000Z","updated_at":"2024-08-24T06:21:10.000Z","dependencies_parsed_at":"2023-01-15T10:00:37.409Z","dependency_job_id":null,"html_url":"https://github.com/guumaster/dir-cleaner","commit_stats":null,"previous_names":["igzgustavomarin/dir-cleaner"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fdir-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fdir-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fdir-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fdir-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guumaster","download_url":"https://codeload.github.com/guumaster/dir-cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241353225,"owners_count":19949001,"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-11T12:27:49.076Z","updated_at":"2025-03-01T10:31:17.456Z","avatar_url":"https://github.com/guumaster.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://img.shields.io/github/workflow/status/guumaster/dir-cleaner/Test)](https://github.com/guumaster/dir-cleaner/actions?query=workflow%3ATest)\n[![GitHub Release](https://img.shields.io/github/release/guumaster/dir-cleaner.svg?logo=github\u0026labelColor=262b30)](https://github.com/guumaster/dir-cleaner/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/guumaster/dir-cleaner)](https://goreportcard.com/report/github.com/guumaster/dir-cleaner)\n[![License](https://img.shields.io/github/license/guumaster/dir-cleaner)](https://github.com/guumaster/dir-cleaner/LICENSE)\n# Dir Cleaner\n\nA simple tool to scan and remove unwanted directories from your system.\n\nIt may takes between 10 or 15 seconds if you pass a path 200Gb and 2 million files. It's really fast if you narrow the search.\n\nIt was used as a demo on our internal Golang program. It contains different versions with improvements.\n\n\n## Installation\n\nGo to [release page](https://github.com/guumaster/dir-cleaner/releases) and download the binary you need.\n\n\n## Examples to remove all node_modules\n\n```bash\n$\u003e dir-cleaner --path / --pattern node_modules\n\n// Output:\nPath: [/]: Scanned 2,045,830 files. Matched 254,183 in 2,731 directories. [1.9 GB]\n```\n\n\n## Usage\n\n\tNAME:\n\t   dir-cleaner - remove your unused files on your system\n\n\tUSAGE:\n\t   dir-cleaner [--path \u003cpath\u003e] [--depth \u003cnum\u003e] [--dry-run] [--pattern \u003csome_path\u003e [--pattern \u003csome_path\u003e]]\n\n\tVERSION:\n\t   1.0.0\n\n\tAUTHOR:\n\t   Guumaster \u003cguuweb@gmail.com\u003e\n\n\tCOMMANDS:\n\t   help, h  Shows a list of commands or help for one command\n\n\tGLOBAL OPTIONS:\n\t   --path value, -p value       path where to start the search (default: \"$PWD\")\n\n       --pattern value              pattern to search (can be repeated for multiple patterns)\n\n\t   --dry-run                    just check without deleting data (default: false)\n\n\t   --max-depth value, -d value  how many levels to check (use 0 for no max depth) (default: 0)\n\n\t   --bytes                      count bytes instead of default blocks of 4K to match 'du' reports (default: false)\n\n\t   --verbose                    print more info into the console (default: false)\n\n\t   --help, -h                   show help (default: false)\n\n\t   --version, -v                print the version (default: false)\n\n\n### Dependencies \u0026 Refs\n  * [dustin/go-humanize](https://github.com/dustin/go-humanize)\n  * [urfave/cli](https://github.com/urfave/cli)\n\n\n### LICENSE\n\n [MIT license](LICENSE)\n\n\n### Author(s)\n\n* [guumaster](https://github.com/guumaster)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguumaster%2Fdir-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguumaster%2Fdir-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguumaster%2Fdir-cleaner/lists"}