{"id":19208992,"url":"https://github.com/carsonslovoka/unique","last_synced_at":"2026-06-13T01:31:25.253Z","repository":{"id":65771145,"uuid":"598998417","full_name":"CarsonSlovoka/unique","owner":"CarsonSlovoka","description":"Remove duplicate files according to the file md5, leaving only one if there are duplicates.","archived":false,"fork":false,"pushed_at":"2023-02-08T10:52:33.000Z","size":36,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T07:17:19.956Z","etag":null,"topics":["chinese","file","remove-duplicates","taiwan","tools"],"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/CarsonSlovoka.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-08T08:36:10.000Z","updated_at":"2024-03-28T15:31:31.000Z","dependencies_parsed_at":"2023-03-10T18:59:42.669Z","dependency_job_id":null,"html_url":"https://github.com/CarsonSlovoka/unique","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CarsonSlovoka/unique","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Funique","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Funique/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Funique/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Funique/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarsonSlovoka","download_url":"https://codeload.github.com/CarsonSlovoka/unique/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Funique/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284316146,"owners_count":26984153,"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","status":"online","status_checked_at":"2025-11-13T02:00:06.582Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chinese","file","remove-duplicates","taiwan","tools"],"created_at":"2024-11-09T13:28:40.941Z","updated_at":"2025-11-14T01:01:25.526Z","avatar_url":"https://github.com/CarsonSlovoka.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"asset/img/site/favicon.svg\"\u003e\n    \u003cimg alt=\"replace\" src=\"asset/img/site/favicon.svg\" width=\"128\"/\u003e\n  \u003c/a\u003e\u003cbr\u003e\n  \u003ca href=\"http://golang.org\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Made%20with-Go-1f425f.svg\" alt=\"Made with Go\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://pkg.go.dev/github.com/CarsonSlovoka/unique\"\u003e\n      \u003cimg src=\"https://pkg.go.dev/badge/CarsonSlovoka/unique/unique.svg\" alt=\"\"\u003e\n  \u003c/a\u003e\n\n  \u003c!-- filename=src%2Fgo.mod\" --\u003e\n  \u003cimg src=\"https://img.shields.io/github/go-mod/go-version/CarsonSlovoka/unique?filename=go.mod\" alt=\"go.mod\"\u003e\n\n  \u003ca href=\"https://GitHub.com/CarsonSlovoka/unique/releases/\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/release/CarsonSlovoka/unique\" alt=\"Latest release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/CarsonSlovoka/unique/blob/master/LICENSE\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/license/CarsonSlovoka/unique.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n# Unique\n\n移除重複的檔案，以檔案md5為主，若有重複就只留下一個。\n\n其中保留的那一個可以依照以下其中一個來指定\n\n- cTime: 保留建立日期最早的檔案\n- len: 保留檔案路徑最短者\n\n## Install \u0026 Usage\n\n```yaml\ngit clone https://github.com/CarsonSlovoka/unique.git\ncd unique\ngo install -ldflags \"-s -w\" github.com/CarsonSlovoka/unique/unique # 前面的unique為go.mod所用的名稱，後面的unique為package main所在的路徑，又因go install預設用package main所在的文件夾命名，所以要改成unique\nunique.exe -config=\"example-unique.json\"\n```\n\n## [Download zip]\n\n可以至[releases](https://github.com/CarsonSlovoka/unique/releases)的頁面找尋喜歡的版本下載該zip檔案即可(目前僅提供windows)\n\n## [設定檔](unique/.unique.json)\n\n```json5\n{\n  \"wkDir\": \"./testDir\", // C:\\\\...\\\\images // 絕對路徑或者相對路徑都可以\n  // \"suffixes\": [\"*\"], // 代表不做判斷，所有副檔名都會列入判斷\n  \"suffixes\": [\n    \".png\",\n    \".jpg\"\n  ], // 只對png與jpg做判斷\n  \"condition\": \"cTime\", // len, cTime\n}\n```\n\n注意比較條件是以md5為主，即便兩個不同副檔名的檔案，只要他們的md5數值為準，就會列入考量，例如\n```\naa.txt\nbbb.png\n若兩者相同md5數值都相同\n在len的模式下只會保留aa.txt\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarsonslovoka%2Funique","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarsonslovoka%2Funique","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarsonslovoka%2Funique/lists"}