function toUser

Transform a UserDomain into a User.

Examples

Example 1

import { toUser } from './user_utils.ts'

const user = toUser('john-doe')
console.assert(user === 'john.doe')

Parameters

userDomain: UserDomain

User domain (hostname subdomain) derived from user login.

Return Type

Corresponding user user login.

Usage

import { toUser } from "user_utils.ts";