Function: normalizeRepositoryUrl()

Source: 1.0.0-rc.14 · a572916b42ec

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'