{"id":13582177,"url":"https://github.com/johnweldon/cleanpath","last_synced_at":"2025-04-06T14:30:33.634Z","repository":{"id":28304435,"uuid":"31817096","full_name":"johnweldon/cleanpath","owner":"johnweldon","description":"Go tool to cleanup PATH-like strings.","archived":true,"fork":false,"pushed_at":"2016-06-14T02:20:00.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-02T15:48:11.309Z","etag":null,"topics":["cleanup","cli","environment-variables","go","golang","path"],"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/johnweldon.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":"2015-03-07T15:52:10.000Z","updated_at":"2023-01-28T09:46:45.000Z","dependencies_parsed_at":"2022-08-01T13:37:40.508Z","dependency_job_id":null,"html_url":"https://github.com/johnweldon/cleanpath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fcleanpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fcleanpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fcleanpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnweldon%2Fcleanpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnweldon","download_url":"https://codeload.github.com/johnweldon/cleanpath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223253761,"owners_count":17114252,"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":["cleanup","cli","environment-variables","go","golang","path"],"created_at":"2024-08-01T15:02:28.411Z","updated_at":"2024-11-05T22:30:33.641Z","avatar_url":"https://github.com/johnweldon.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# cleanpath\n\nSimple tool to clean up PATH like strings by removing redundant and\nincorrect entries but keeping the relative order of the paths that\nremain.\n\nFor example:\n\n```sh\n$ export FAKEPATH=/usr/bin:/usr/local/bin:/usr/bin:/usr/sbin:.\n$ export FAKEPATH=$(cleanpath $FAKEPATH)\n$ echo $FAKEPATH\n/usr/bin:/usr/local/bin:/usr/sbin\n```\n\nNotice:\n1) Redundant paths removed, but relative order of first occurence is maintained.\n2) Relative (unsafe) paths removed.\n\n\n[![Build Status](https://travis-ci.org/johnweldon/cleanpath.svg)](https://travis-ci.org/johnweldon/cleanpath)\n[![GoDoc](https://godoc.org/github.com/johnweldon/cleanpath?status.svg)](https://godoc.org/github.com/johnweldon/cleanpath)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnweldon%2Fcleanpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnweldon%2Fcleanpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnweldon%2Fcleanpath/lists"}