{"id":32292501,"url":"https://github.com/akaiser/dart_dependency_checker_cli","last_synced_at":"2026-02-22T00:01:47.448Z","repository":{"id":218807044,"uuid":"747421175","full_name":"akaiser/dart_dependency_checker_cli","owner":"akaiser","description":"A command-line utility for checking dependencies within Dart/Flutter packages.","archived":false,"fork":false,"pushed_at":"2025-11-24T11:35:45.000Z","size":148,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T23:14:36.109Z","etag":null,"topics":["dart","flutter"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/dart_dependency_checker_cli","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akaiser.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-23T22:22:57.000Z","updated_at":"2025-11-24T10:50:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"e48ff108-6563-402b-a010-6164de29f64d","html_url":"https://github.com/akaiser/dart_dependency_checker_cli","commit_stats":null,"previous_names":["akaiser/dart_dependency_checker_cli"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/akaiser/dart_dependency_checker_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaiser%2Fdart_dependency_checker_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaiser%2Fdart_dependency_checker_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaiser%2Fdart_dependency_checker_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaiser%2Fdart_dependency_checker_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akaiser","download_url":"https://codeload.github.com/akaiser/dart_dependency_checker_cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaiser%2Fdart_dependency_checker_cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29699335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dart","flutter"],"created_at":"2025-10-23T03:21:01.662Z","updated_at":"2026-02-22T00:01:47.441Z","avatar_url":"https://github.com/akaiser.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dart_dependency_checker_cli\n\nA command-line wrapper using utilities from [dart_dependency_checker](https://pub.dev/packages/dart_dependency_checker)\nfor checking and fixing dependencies within Dart/Flutter packages.\n\n## Available commands\n\n| Command          | Alias | Description                                                                                                                                                                        |\n|------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deps-used`      | `du`  | Lists dependencies that are actively used in the project's codebase.                                                                                                               |\n| `deps-unused`    | `dun` | Lists dependencies that are declared in the `pubspec.yaml` file but are not utilized in the project's codebase. Supports an instant fix during run.                                |\n| `transitive-use` | `tu`  | Lists dependencies that are used directly in the project without being explicitly declared in the `pubspec.yaml` file.                                                             |\n| `deps-add`       | `da`  | Blindly adds specified dependencies to the `pubspec.yaml` file. Supports adding both main and dev dependencies, including those from path or git sources.                          |\n| `deps-update`    | `dup` | Updates provided but only existing main and dev dependencies in a `pubspec.yaml` file. Supports updating both main and dev dependencies, including those from path or git sources. |\n| `deps-sort`      | `ds`  | Sorts the dependencies listed in the `pubspec.yaml` file, organizing them in a standardized order for better readability and maintenance.                                          |\n\n## Usage\n\n### Installation\n\n```bash\ndart pub global activate dart_dependency_checker_cli\n```\n\n### Command `deps-used`\n\nLists dependencies that are actively used in the project's codebase.\n\n#### Arguments:\n\n```\n-p, --path=\u003cpath\u003e     Path to valid pubspec.yaml.\n    --main-ignores    Comma separated list of main dependencies to be ignored.\n    --dev-ignores     Comma separated list of dev dependencies to be ignored.\n    --[no-]json       Output in json format.\n```\n\n#### Example:\n\n```bash\nddc deps-used --main-ignores http,path_provider --json\n```\n\n### Command `deps-unused`\n\nLists dependencies that are declared in the `pubspec.yaml` file but are not utilized in the project's codebase. Supports\nan instant fix during run.\n\n#### Arguments:\n\n```\n-p, --path=\u003cpath\u003e     Path to valid pubspec.yaml.\n    --main-ignores    Comma separated list of main dependencies to be ignored.\n    --dev-ignores     Comma separated list of dev dependencies to be ignored.\n    --[no-]fix        Instant cleanup after checker run.\n    --[no-]json       Output in json format.\n```\n\n#### Example:\n\n```bash\nddc deps-unused --dev-ignores lints,build_runner --fix\n```\n\n### Command `transitive-use`\n\nLists dependencies that are used directly in the project without being explicitly declared in the `pubspec.yaml` file.\n\n#### Arguments:\n\n```\n-p, --path=\u003cpath\u003e     Path to valid pubspec.yaml.\n    --main-ignores    Comma separated list of main dependencies to be ignored.\n    --dev-ignores     Comma separated list of dev dependencies to be ignored.\n    --[no-]json       Output in json format.\n```\n\n#### Example:\n\n```bash\nddc transitive-use --main-ignores async,meta\n```\n\n### Command `deps-add`\n\nBlindly adds specified dependencies to the `pubspec.yaml` file. Supports adding both main and dev dependencies,\nincluding those from path or git sources.\n\n#### Arguments:\n\n```\n-p, --path=\u003cpath\u003e    Path to valid pubspec.yaml.\n    --main           Comma separated list of main dependencies.\n    --dev            Comma separated list of dev dependencies.\n    --[no-]json      Output in json format.\n```\n\n#### Example:\n\n```bash\nddc deps-add --main equatable:2.0.7,meta:^1.3.0 --dev some_path_source:path=../some_path_dependency\n```\n\n### Command `deps-update`\n\nUpdates provided but only existing main and dev dependencies in a `pubspec.yaml` file. Supports updating both main and\ndev dependencies, including those from path or git sources.\n\n#### Arguments:\n\n```\n-p, --path=\u003cpath\u003e    Path to valid pubspec.yaml.\n    --main           Comma separated list of main dependencies.\n    --dev            Comma separated list of dev dependencies.\n    --[no-]json      Output in json format.\n```\n\n#### Example:\n\n```bash\nddc deps-update --main equatable:2.0.7,meta:^1.3.0 --dev some_path_source:path=../some_path_dependency\n```\n\n### Command `deps-sort`\n\nSorts the dependencies listed in the `pubspec.yaml` file, organizing them in a standardized order for better readability\nand maintenance.\n\n#### Arguments:\n\n```\n-p, --path=\u003cpath\u003e    Path to valid pubspec.yaml.\n    --[no-]json      Output in json format.\n```\n\n#### Example:\n\n```bash\nddc deps-sort\n```\n\n## License\n\nSee the [LICENSE](LICENSE) file.\n\n## Version history\n\nSee the [CHANGELOG.md](CHANGELOG.md) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaiser%2Fdart_dependency_checker_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakaiser%2Fdart_dependency_checker_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaiser%2Fdart_dependency_checker_cli/lists"}