{"id":28203822,"url":"https://github.com/olegkron/dependency-cleaner","last_synced_at":"2025-07-04T09:07:11.526Z","repository":{"id":128815877,"uuid":"596064788","full_name":"olegkron/dependency-cleaner","owner":"olegkron","description":"A shell script for easy dependencies cleanup.","archived":false,"fork":false,"pushed_at":"2024-05-17T17:32:08.000Z","size":3872,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T12:43:44.255Z","etag":null,"topics":["cli","nodejs","productivity","python3","shell","shell-script","storage","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/olegkron.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":"2023-02-01T11:49:45.000Z","updated_at":"2024-07-10T10:11:57.000Z","dependencies_parsed_at":"2024-05-17T01:44:22.620Z","dependency_job_id":"89a27089-3a36-45fc-9bd8-e5ca93c2700a","html_url":"https://github.com/olegkron/dependency-cleaner","commit_stats":null,"previous_names":["olegkron/dependency-cleaner"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/olegkron/dependency-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkron%2Fdependency-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkron%2Fdependency-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkron%2Fdependency-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkron%2Fdependency-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegkron","download_url":"https://codeload.github.com/olegkron/dependency-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkron%2Fdependency-cleaner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263480866,"owners_count":23473164,"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":["cli","nodejs","productivity","python3","shell","shell-script","storage","utility"],"created_at":"2025-05-17T02:13:25.173Z","updated_at":"2025-07-04T09:07:11.487Z","avatar_url":"https://github.com/olegkron.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eDependency Cleaner\u003c/h1\u003e \u003cdiv align=\"center\"\u003e\n\nA shell script to easily delete dependency folders in a given directory and its subdirectories. A great tool to free up disk space by removing unnecessary node_modules, .cache, pycache, target, venv, env, go/pkg folders.\n\n[![Stars](https://img.shields.io/github/stars/olegkron/dependency-cleaner.svg?style=social)](https://github.com/olegkron/dependency-cleaner/stargazers) [![Forks](https://img.shields.io/github/forks/olegkron/dependency-cleaner.svg?style=social)](https://github.com/olegkron/dependency-cleaner/network/members) [![Contributors](https://img.shields.io/github/contributors/olegkron/dependency-cleaner.svg)](https://github.com/olegkron/dependency-cleaner/graphs/contributors) [![Issues](https://img.shields.io/github/issues/olegkron/dependency-cleaner.svg)](https://github.com/olegkron/dependency-cleaner/issues) [![MIT License](https://img.shields.io/github/license/olegkron/dependency-cleaner.svg)](https://github.com/olegkron/dependency-cleaner/blob/main/LICENSE)\n\n\u003c/div\u003e\n\n![Output example](https://raw.githubusercontent.com/olegkron/node_modules_remover/main/output_example.png)\n\n## 🎉 Features\n\n-   🔎 Recursively searches for the following folders in the input directory: \"node_modules\", \".cache\", \"pycache\". \"target\", \"venv\". \"env\", \"go/pkg\" (any of them can be added or removed)\n-   📊 Displays the total size of each folder\n-   💽 Calculates the total space saved\n-   🖥️ Works on Linux and MacOS\n\n## 💻 Usage\n\nThe script can be executed using the following command in the terminal:\n\n`./dependency-cleaner.sh [directory_path] [max_depth]`\n\n-   `directory_path`: Required. The directory to search for node_modules folders.\n-   `max_depth`: Optional. Sets maximum depth to search for node_modules folders. Default is 3.\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=olegkron/dependency-cleaner\u0026type=Date)](https://star-history.com/#olegkron/dependency-cleaner\u0026Date)\n\n## 🙌 Contributing\n\nIf you have any suggestions for improvements or find any bugs, feel free to open a pull request or an issue.\n\n## 👥 Authors\n\n-   **Oleg Kron** - [olegkron](https://github.com/olegkron)\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/olegkron/node_modules_remover/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegkron%2Fdependency-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegkron%2Fdependency-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegkron%2Fdependency-cleaner/lists"}