{"id":19066825,"url":"https://github.com/gravejester/convertto-shortenedpath","last_synced_at":"2025-09-06T22:41:33.996Z","repository":{"id":67391040,"uuid":"91182051","full_name":"gravejester/ConvertTo-ShortenedPath","owner":"gravejester","description":"PowerShell function to shorten paths","archived":false,"fork":false,"pushed_at":"2018-02-04T17:58:21.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T03:17:47.687Z","etag":null,"topics":["path","powershell","powershell-module","shortener"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/gravejester.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":"2017-05-13T15:02:10.000Z","updated_at":"2017-05-19T18:41:44.000Z","dependencies_parsed_at":"2023-05-05T08:08:00.035Z","dependency_job_id":null,"html_url":"https://github.com/gravejester/ConvertTo-ShortenedPath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gravejester/ConvertTo-ShortenedPath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravejester%2FConvertTo-ShortenedPath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravejester%2FConvertTo-ShortenedPath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravejester%2FConvertTo-ShortenedPath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravejester%2FConvertTo-ShortenedPath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gravejester","download_url":"https://codeload.github.com/gravejester/ConvertTo-ShortenedPath/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravejester%2FConvertTo-ShortenedPath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273973989,"owners_count":25200579,"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-09-06T02:00:13.247Z","response_time":2576,"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":["path","powershell","powershell-module","shortener"],"created_at":"2024-11-09T00:58:08.619Z","updated_at":"2025-09-06T22:41:33.969Z","avatar_url":"https://github.com/gravejester.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/chnleew3d051w9qk?svg=true)](https://ci.appveyor.com/project/gravejester/convertto-shortenedpath)\n\n# ConvertTo-ShortenedPath\n\nPowerShell function to shorten paths.\n\nThis functions takes a path as input and lets you shorten it with multiple customization options. It was primarily made as a helper funtion for custom PowerShell prompts, but works just as well stand-alone if needed.\n\n## Examples\n\nGiven the following string as input:\n\n    Microsoft.PowerShell.Core\\FileSystem::\\\\localhost\\c$\\temp\\sub1\\sub2\\another\\different\\deep\\folder\\test\\dev\\temp\\\n\n\nYou can shorten it to be any of the following (and more):\n\n    \\\\localhost\\c$\\…\\temp\n    \\\\l\\c\\…\\temp\n    \\\\l\\c\\t\\s\\s\\a\\d\\d\\f\\t\\d\\temp\n    \\\\localhost|c$|...|temp\n    \\\\localhost\\c\\t\\…\\t\\d\\temp\n\nThe function will also replace the home path Unix-style, if you so choose. Take a look at the built-in help for more examples and a complete overview of the different parameters.\n\n## Installation\n\nIf you have PowerShellGet, you can install it with:\n\n    Install-Module ConvertTo-ShortenedPath\n\nElse, you would have to download the zip from this repository and manually unpack it to one of the module paths on your system.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravejester%2Fconvertto-shortenedpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgravejester%2Fconvertto-shortenedpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravejester%2Fconvertto-shortenedpath/lists"}