Skip to content

Function: normalizeRepositoryUrl()

ts
function normalizeRepositoryUrl(url): string;

Defined in: packages/@valaxyjs/utils/src/client/url.ts:9

Remove git+ prefix from repository URL

Parameters

url

string

Repository URL that may contain git+ prefix

Returns

string

Normalized URL without git+ prefix

Example

ts
normalizeRepositoryUrl('git+https://github.com/user/repo.git')
// => 'https://github.com/user/repo.git'