Function: normalizeRepositoryUrl() ​

Source: 1.1.0 · e3417e89b638

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'