{"id":19383361,"url":"https://github.com/mdouchement/upathex","last_synced_at":"2025-06-20T05:33:04.707Z","repository":{"id":56741063,"uuid":"524468341","full_name":"mdouchement/upathex","owner":"mdouchement","description":"Handle Bash tilde \u0026 env vars in path.","archived":false,"fork":false,"pushed_at":"2022-08-13T17:49:39.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T17:17:12.855Z","etag":null,"topics":["env","environment","environment-variables","path","tilde"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdouchement.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-13T17:44:47.000Z","updated_at":"2022-08-13T17:49:12.000Z","dependencies_parsed_at":"2022-08-16T01:10:18.885Z","dependency_job_id":null,"html_url":"https://github.com/mdouchement/upathex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mdouchement/upathex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fupathex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fupathex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fupathex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fupathex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdouchement","download_url":"https://codeload.github.com/mdouchement/upathex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fupathex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260889646,"owners_count":23077855,"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":["env","environment","environment-variables","path","tilde"],"created_at":"2024-11-10T09:25:47.579Z","updated_at":"2025-06-20T05:32:59.694Z","avatar_url":"https://github.com/mdouchement.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# upathex\n\n`upathex` is a package that expands paths like a shell interpreter.\n\n## Usage\n\n```go\npath := upathex.ExpandTilde(\"~/bin\")\n// =\u003e /home/mdouchement/bin\n\npath := upathex.ExpandTilde(\"~root/bin\")\n// =\u003e /root/bin\n\n\npath := upathex.ExpandEnv(\"$HOME/bin\")\n// =\u003e /home/mdouchement/bin\n\npath := upathex.ExpandEnv(\"${HOME}/bin\")\n// =\u003e /home/mdouchement/bin\n\npath := upathex.ExpandEnvWithCustom(\"$TROLOLO/bin\", map[string]string{\n    \"TROLOLO\": \"trololo-lolo\",\n})\n// =\u003e trololo-lolo/bin\n```\n\n## License\n\n**MIT**\n\n\n## Contributing\n\nAll PRs are welcome.\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n5. Push to the branch (git push origin my-new-feature)\n6. Create new Pull Request","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fupathex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdouchement%2Fupathex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fupathex/lists"}