Skip to content

PromptScript API


Function: getWebUrl()

getWebUrl(url): string

Defined in: resolver/src/git-url-utils.ts:316

Get the web URL for a Git repository.

Parameters

url

string

Git URL

Returns

string

Web URL for browsing the repository

Example

getWebUrl('git@github.com:org/repo.git');
// 'https://github.com/org/repo'