{"id":22837233,"url":"https://github.com/cake-contrib/cake.pathtildehelper","last_synced_at":"2025-04-24T03:26:03.686Z","repository":{"id":39925607,"uuid":"142487039","full_name":"cake-contrib/Cake.PathTildeHelper","owner":"cake-contrib","description":":cake: :jigsaw: :house: Cake build helper to convert paths with a leading tilde (~) characters to the home path of the user","archived":false,"fork":false,"pushed_at":"2025-03-20T00:25:52.000Z","size":119,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-15T15:18:42.899Z","etag":null,"topics":["augustoproiete","cake","cake-addin","cake-build","hacktoberfest","path","resolve","tilde"],"latest_commit_sha":null,"homepage":"https://cakebuild.net/extensions/cake-pathtildehelper/","language":"C#","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/cake-contrib.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-26T19:48:37.000Z","updated_at":"2025-03-20T00:25:55.000Z","dependencies_parsed_at":"2024-05-07T19:27:48.540Z","dependency_job_id":"e3c28fa3-be1b-4dca-b631-34bdfea1a2a7","html_url":"https://github.com/cake-contrib/Cake.PathTildeHelper","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.PathTildeHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.PathTildeHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.PathTildeHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.PathTildeHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cake-contrib","download_url":"https://codeload.github.com/cake-contrib/Cake.PathTildeHelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250553895,"owners_count":21449496,"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":["augustoproiete","cake","cake-addin","cake-build","hacktoberfest","path","resolve","tilde"],"created_at":"2024-12-12T23:16:04.653Z","updated_at":"2025-04-24T03:26:03.663Z","avatar_url":"https://github.com/cake-contrib.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Cake.PathTildeHelper\n\n[Cake](https://cakebuild.net/) add-in to provide aliases to help translate tilde (`~`) characters to absolute paths usable in locations requiring a full path.\n\n## Give a Star! :star:\n\nIf you like or are using this project please give it a star. Thanks!\n\n### When do I use it?\n\nMost of the Cake path systems don't seem to handle the tilde (`~`) character. They typically make them a path relative to the working directory with the name of `~`. If you ever want to provide input paths to a Cake script that have a leading tilde (`~`) in them, such as `~/Projects/my-cool-file.txt` or `~/Documents`, these helpers will translate those values to an absolute path that other Cake aliases and add-ins will be able to handle.\n\n### How do I use it?\n\nAdd a directive to the top of your **build.cake** file to include the project NuGet package.\n\n```\n#addin nuget:?package=Cake.PathTildeHelper\n```\n\nAfter that, you can call the `PathReplaceTilde` alias from your Cake script and any tasks within it.\n\n```csharp\nInformation(PathReplaceTilde(new FilePath(\"~/Documents/awesome-stuff.txt\")));\n```\n\nOn Windows, that will translate the path to something like `C:\\Users\\yourusername\\Documents\\awesome-stuff.txt` (though Cake will keep that path with `/` slashes instead).\n\nOn macOS and friends, that will translate the path to something like `/Users/yourusername/Documents/awesome-stuff.txt`.\n\nYou can also use it for directories, swapping the `FilePath` for a `DirectoryPath`.\n\n```csharp\nInformation(PathReplaceTilde(new DirectoryPath(\"~/Documents\")));\n```\n\n## Discussion\n\nFor questions and to discuss ideas \u0026 feature requests, use the [GitHub discussions on the Cake GitHub repository](https://github.com/cake-build/cake/discussions), under the [Extension Q\u0026A](https://github.com/cake-build/cake/discussions/categories/extension-q-a) category.\n\n[![Join in the discussion on the Cake repository](https://img.shields.io/badge/GitHub-Discussions-green?logo=github)](https://github.com/cake-build/cake/discussions)\n\n## Release History\n\nClick on the [Releases](https://github.com/cake-contrib/Cake.PathTildeHelper/releases) tab on GitHub.\n\n---\n\n_Copyright \u0026copy; 2018-2021 Cake Contributors - Provided under the [MIT License](LICENSE)._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-contrib%2Fcake.pathtildehelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcake-contrib%2Fcake.pathtildehelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-contrib%2Fcake.pathtildehelper/lists"}