{"id":16278594,"url":"https://github.com/sigoden/projclean","last_synced_at":"2025-04-06T07:12:22.211Z","repository":{"id":40501847,"uuid":"468202745","full_name":"sigoden/projclean","owner":"sigoden","description":"Project dependencies \u0026 build artifacts cleanup tool.","archived":false,"fork":false,"pushed_at":"2024-01-12T04:41:14.000Z","size":174,"stargazers_count":138,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T06:10:10.463Z","etag":null,"topics":["cleaner","cli","command-line","rust","tui"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sigoden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2022-03-10T05:12:53.000Z","updated_at":"2025-03-18T18:07:29.000Z","dependencies_parsed_at":"2024-12-06T20:17:54.868Z","dependency_job_id":"5cf58a1f-d4c0-45df-ac6a-f78f50e5301e","html_url":"https://github.com/sigoden/projclean","commit_stats":{"total_commits":103,"total_committers":2,"mean_commits":51.5,"dds":0.009708737864077666,"last_synced_commit":"95a8012180c18ff3aa70e88ab955fe0fcd329c81"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fprojclean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fprojclean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fprojclean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fprojclean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigoden","download_url":"https://codeload.github.com/sigoden/projclean/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445671,"owners_count":20939958,"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":["cleaner","cli","command-line","rust","tui"],"created_at":"2024-10-10T18:59:06.249Z","updated_at":"2025-04-06T07:12:22.194Z","avatar_url":"https://github.com/sigoden.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Projclean\n\n[![CI](https://github.com/sigoden/projclean/actions/workflows/ci.yaml/badge.svg)](https://github.com/sigoden/projclean/actions/workflows/ci.yaml)\n[![Crates](https://img.shields.io/crates/v/projclean.svg)](https://crates.io/crates/projclean)\n\nProject dependencies \u0026 build artifacts cleanup tool.\n\n![screenshot](https://github.com/sigoden/projclean/assets/4012553/82c28551-6d68-4e56-8565-f7aee1987723)\n\n## Install\n\n### With cargo\n\n```\ncargo install projclean\n```\n\n### Binaries on macOS, Linux, Windows\n\nDownload from [Github Releases](https://github.com/sigoden/projclean/releases), unzip and add projclean to your $PATH.\n\n## CLI\n\n```\nUsage: projclean [OPTIONS] [RULES]...\n\nArguments:\n  [RULES]...  Search rules, e.g. node_modules target@Cargo.toml\n\nOptions:\n  -C, --cwd \u003cDIR\u003e         Start searching from \u003cDIR\u003e [default: .]\n  -x, --exclude \u003cDIR\u003e     Exclude directories from search, e.g. ignore1,ignore2\n  -t, --time \u003c[+|-]DAY\u003e   Path was last modified less than, more than or exactly \u003cDAY\u003e days\n  -s, --size \u003c[+|-]SIZE\u003e  Path uses less than, more than or exactly \u003cSIZE\u003e units (K|M|G|T) of space\n  -D, --delete-all        Automatically delete all found targets\n  -P, --print             Print the found targets\n  -h, --help              Print help\n  -V, --version           Print version\n```\n\nClean up node_modules.\n\n```sh\nprojclean node_modules\n```\n\nClean up various types of projects.\n\n```sh\nprojclean node_modules target@Cargo.toml\n```\n\nStart searching from a specific directory with `-C` or `--cwd`\n\n```sh\nprojclean -C $HOME node_modules       # equal to `cd $HOME \u0026\u0026 projclean node_modules`\n```\n\nFind node_modules with the latest updates over 30 days and occupy more than 1G disk space.\n```sh\nprojclean node_modules --time +30 --size +1G\n```\n\n## Search Rule\n\nProjclean find targets according search rule.\n\nRule consist of two parts:\n\n```\n\u003ctarget[,target...]\u003e[@detect[,detect...]]\n```\n\n| project  | rule                                          |\n| :------- | :-------------------------------------------- |\n| nodejs   | `node_modules`                                |\n| cargo    | `target@Cargo.toml`                           |\n| maven    | `target@pom.xml`                              |\n| gradle   | `.gradle,build@build.gradle,build.gradle.kts` |\n| cmake    | `build@CMakeLists.txt`                        |\n| composer | `vendor@composer.json`                        |\n| dotnet   | `bin,obj@*.csproj,*.fsproj`                   |\n| vs       | `.vs,Debug,Release@*.sln`                     |\n| vc++     | `Debug,Release@*.vcxproj`                     |\n| swift    | `.build,.swiftpm@Package.swift`               |\n| pod      | `Pods@Podfile`                                |\n| pub      | `.dart_tool,build@pubspec.yaml`               |\n| sbt      | `target,project/target@build.sbt`             |\n| jupyter  | `.ipynb_checkpoints@*.ipynb`                  |\n| zig      | `zig-cache,zig-out@build.zig`                 |\n| rebar    | `_build@rebar.config`                         |\n| dune     | `_build@dune-project`                         |\n| mix      | `_build@mix.exs`                              |\n| stack    | `.stack-work@stack.yaml`                      |\n| godot    | `.godot@project.godot`                        |\n\n## License\n\nCopyright (c) 2022-2024 projclean-developers.\n\nargc is made available under the terms of either the MIT License or the Apache License 2.0, at your option.\n\nSee the LICENSE-APACHE and LICENSE-MIT files for license details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigoden%2Fprojclean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigoden%2Fprojclean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigoden%2Fprojclean/lists"}