function getRepoUrl

Get raw files repository base url.

Examples

Example 1

import { getRepoUrl } from './url_utils.ts'

const repoUrl = getRepoUrl('john.doe')
console.assert(repoUrl.href === 'https://git.cohabit.fr/john.doe/.portfolio/raw/branch/main/')

Parameters

user: User

Login of the owner user.

Return Type

Repository url for raw files.

Usage

import { getRepoUrl } from "url_utils.ts";